473,804 Members | 3,178 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1790

<mu************ @hotmail.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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.goo glegroups.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
2038
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 the web app I am using asp.net/vb.net This means Customer Group A, could only have 3 concurrent users logged in, and for Customer Group B only 30 at one time.
7
1972
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 with the form data. Under Windowx XP SP2 the IE6 "Information Bar" has the message: "To help protect your security, Internet Explorer has restricted this
1
1473
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 almost the same as the well-known GNU GPL. RefleX is a Java tool that allows people that have no particular knowledge of Java to write smart programs entirely in XML ; however, the
2
4679
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 any new messages. The problem with this is that I poll at 2 second intervals (since connection is not active), and so its not as responsive as I'd like it to be. My question is, is an active HTTP connection possible? How did Meebo or Gmail...
4
7203
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 server ( windows 2003 ) + IIS 6.0 , hen which giee the error = Object reference not set to an instance of an object.This method or property is not available because a document window is not active. and i have try to configure for the component...
0
957
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? Thanks for the help.. mark
0
4068
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 this is really what i have to do. So When the script starts it find it's parent pid, like this ppid = os.getppid() Afterwards a list of active processes is fetched from a console command ps -Af as follows:
1
4063
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 role within Active directory. For example, Region1 has 4 sites, Region 2 has 3 sites and so forth. All the sites are held in a single database table.
1
1933
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 process statistics etc) for Windows as well as Linux platforms ?. If not , is there any other programming language/API that I can use for this ? Regards Jacob
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10337
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.