A Windows job object lets you group processes together and control their attributes as a single entity. You can use a Windows job object to manage processing properties (such as processor usage, memory usage, and process priority) for a group of Windows jobs.
You can create a new Windows job object and associate a job with it or you can associate a job with an existing job object. After all processes associated with a job object complete, the job object no longer exists.
To define a Windows job object, add the JOBOBJECT statement in the job definition.
Example: Create a New Windows Job Object and Assign a Windows Job to It
The following job definition creates a Windows job object named payjobsobject. Payjobsobject can use up to 40 MB of memory (41943040 bytes) and 1 hour of CPU time (3600000 milliseconds) for all processes it contains. Each process associated with payjobsobject has a higher than normal priority and can use up to 500 KB of memory (512000 bytes) and 3 minutes of CPU time (180000 milliseconds). Payjobsobject can have up to 10 simultaneously active processes.
AGENT WINAGENT CMDNAME myscript.bat JOBOBJECT payjobsobject CREATE JOBMEMORY(41943040) + PROCESSMEMORY(512000) JOBTIME(3600000) PROCESSTIME(180000) + PRIORITY(ABOVE_NORMAL) PROCESSLIMIT(10)
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|