473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Limiting active processes?

We currently have a routine that "forks" out (to use the unix term)TSQL
commands to run asynchronously via SQL Agent jobs. Each TSQL command
gets its own Job, and the job starts immediately after creation.

Sometimes we can have too many of these jobs running at the same, and
the box crawls to a slow speed until the jobs finish up.

Is there a way we can limit the number of active jobs running under the
SQL Agent at one time? Or is there away to limit the number of active
(runnable) processes on SQL Server, in general?

Jul 23 '05 #1
2 1778

<mu************@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
We currently have a routine that "forks" out (to use the unix term)TSQL
commands to run asynchronously via SQL Agent jobs. Each TSQL command
gets its own Job, and the job starts immediately after creation.

Sometimes we can have too many of these jobs running at the same, and
the box crawls to a slow speed until the jobs finish up.

Is there a way we can limit the number of active jobs running under the
SQL Agent at one time? Or is there away to limit the number of active
(runnable) processes on SQL Server, in general?


I don't believe this is possible as such, although of course you could
create a table which each job UPDATEs to indicate how many active processes
there are. As for the number of active processes, again this isn't really
possible, without having a job running every few seconds to KILL the latest
processes to connect.

In general, limiting processes arbitrarily may not work very well; one day
you might find that your backup job didn't run because other jobs had taken
up all the 'slots', and then you've lost a day's data. It's may be better to
look at other solutions, such as using a multi-threaded script or program
which runs outside MSSQL.

Simon
Jul 23 '05 #2
Another idea is to check the system tables and see how many job are
currently "executing".
Check the books online because there is a status for "executing".
This is as long as the job is a predefined job. I created an form for the
computer operators in our shop so they can view the
status of job.

Oscar...

<mu************@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
We currently have a routine that "forks" out (to use the unix term)TSQL
commands to run asynchronously via SQL Agent jobs. Each TSQL command
gets its own Job, and the job starts immediately after creation.

Sometimes we can have too many of these jobs running at the same, and
the box crawls to a slow speed until the jobs finish up.

Is there a way we can limit the number of active jobs running under the
SQL Agent at one time? Or is there away to limit the number of active
(runnable) processes on SQL Server, in general?

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Adam | last post by:
Greetings, I am creating a web application, which I will be selling licenses to be able to use it. So Customer Group A, could purchase 3 licenses, Customer Group B could purchase 30. With...
7
by: McKirahan | last post by:
What is "active content"? My ASP page just returns HTML.... I have a page with an .htm extension that has a form whose action is an ASP page which generates a report after updating a database...
1
by: Philippe Poulard | last post by:
hi, People that are intersting in native XML programming can download the RefleX engine freely here : http://reflex.gforge.inria.fr RefleX is available under the french license CeCILL, which is...
2
by: jason.m.ho | last post by:
Hello! I am trying to build an ajax chat system. Currently I have it so that when you chat, you upload your message to the database, and each client is polling that database to see if he/she has...
4
by: ianyian | last post by:
hi experts, im doing some staff bween th the aspx + MS Word.chellcheck, and and which running on my ypc is no problem ( windows xp , activation by ASPNET ), buts someshow when i try to deploy to...
0
markryan57
by: markryan57 | last post by:
Greetings, I have seen different ideas on how to terminate active processes (i.e., MS Access, Excel, etc) from VB6 - what is the most effecient method of finding and terminating active processes? ...
0
by: Bierny | last post by:
Hi All! I am writting a small script that will find a parent pid and from this point find a parent of a parent in order to kill this last parent :-) I know it sounds stange (at least ... ) but...
1
by: Tim | last post by:
Folks, I have 3 loosely linked problems which I am would appreciate feedback on. 1). T-Sql and Active directory roles. We want to be able to control access to data within a table based on a...
1
by: inlovewithmusic | last post by:
Hi, I am writing an application to monitor Operating system events, processes and services that are running on an OS etc. Is there a JAVA library that I can use to access the same (events, active...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.