Finding the List of DS jobs Consuming More CPU on the Server
Posted: Fri Sep 24, 2010 2:53 am
Requirement : Try to find out the Running DS job , which is consuming more CPU On the DS Server.
Method adopted to achive the Requirement:
STEP-1: Try to get the CPU stats using VMSTATS command. If the cpu usage is grater than the Threshold limit(say 85%) based on the ouput from VMSTAT then
STEP-2: Try to grep the list of processes that consumes more CPU using the command "ps aux | head -1; ps aux | sort -rn +2 | head -10".
STEP-3: To grep he list of Processes more specific to Datastage. We are using the below commands to grep the same.
a. ps aux|head -1;ps aux|grep dsuserid1l|sort -rn +2|head -10
b. ps aux|head -1;ps aux|grep dsuserid2|sort -rn +2|head -10
dsuserid1/dsuserid2(unix id's) are the two different user id's that we use to run any fo the DS jobs on the DS Server
STEP-4: Try to get the list of running jobs on DS server suing the command "ps -ef| grep DSD.RUN"
Challenge we are facing.: Not able to tage PID's grepped in STEP-3 & 4
When i execute the command "proctree <DS job process id grepped in STEP-4> " on DS server I am able to see the process tree starting form the Respective job till "dsrpcd" deamon , but not able to see any of the process grepped in Step-3 and Viceversa(not able to see the parent id of the process grepped in step-3 so that it can be tagged to Jobs grepped in step-4)..
The Method i have adopted might be wrong. Request you to please provide me your valuable inputs
Method adopted to achive the Requirement:
STEP-1: Try to get the CPU stats using VMSTATS command. If the cpu usage is grater than the Threshold limit(say 85%) based on the ouput from VMSTAT then
STEP-2: Try to grep the list of processes that consumes more CPU using the command "ps aux | head -1; ps aux | sort -rn +2 | head -10".
STEP-3: To grep he list of Processes more specific to Datastage. We are using the below commands to grep the same.
a. ps aux|head -1;ps aux|grep dsuserid1l|sort -rn +2|head -10
b. ps aux|head -1;ps aux|grep dsuserid2|sort -rn +2|head -10
dsuserid1/dsuserid2(unix id's) are the two different user id's that we use to run any fo the DS jobs on the DS Server
STEP-4: Try to get the list of running jobs on DS server suing the command "ps -ef| grep DSD.RUN"
Challenge we are facing.: Not able to tage PID's grepped in STEP-3 & 4
When i execute the command "proctree <DS job process id grepped in STEP-4> " on DS server I am able to see the process tree starting form the Respective job till "dsrpcd" deamon , but not able to see any of the process grepped in Step-3 and Viceversa(not able to see the parent id of the process grepped in step-3 so that it can be tagged to Jobs grepped in step-4)..
The Method i have adopted might be wrong. Request you to please provide me your valuable inputs