The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CPU Utilization bullz26 Shell Programming and Scripting 3 02-25-2008 01:24 AM
cpu utilization of a process iam AIX 2 02-19-2008 09:50 PM
Low average cpu utilization. Moodie SUN Solaris 3 12-11-2007 03:25 PM
% CPU utilization karthikosu UNIX for Dummies Questions & Answers 1 07-28-2006 09:00 AM
CPU Utilization kimosilk UNIX for Dummies Questions & Answers 4 06-13-2005 07:44 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2006
Registered User
 

Join Date: Jan 2006
Posts: 12
Stumble this Post!
CPU Utilization

On user complains about the performance of web application, as a part application support, we use following commands to see the CPU utilization in the UNIX using ‘sar’ command. Some times it goes below 20 and even reaches 0.

HLW$~> sar -u 10 60

SunOS HLW 5.8 Generic_117350-14 sun4u 05/18/06

13:48:51 %usr %sys %wio %idle
13:49:01 80 5 0 16
13:49:11 72 6 0 22
13:49:21 84 5 0 11
13:49:31 78 4 0 18
13:49:41 71 5 0 24
13:49:51 71 5 0 23
13:50:01 82 6 0 11
13:50:11 84 8 0 8
13:50:21 90 10 0 0
13:50:31 92 7 0 1
13:50:41 86 4 0 11
13:50:51 94 6 0 0
13:51:01 82 3 0 15

Is there anyway to find which process or thread blocking the CPU and RAM? Could we identify which process is blocking this and why it is blocking (I mean which activity is blocking)?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-18-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Stumble this Post!
You can use prstat on Solaris 8 and above - works like top. Should show the processes taking up the cpu/memory - see prstat man page for more info.
Reply With Quote
  #3 (permalink)  
Old 05-18-2006
Registered User
 

Join Date: Jan 2006
Posts: 12
Stumble this Post!
Thanks for your reply.

When I use prstat -s size -n 5 to find this the process id 15643 (one of the weblogic node) utlizes 65%. But I was able to find out which activity or thread utilizing this. Can we still drill down to find out this? Please see the result.

HLW$~> prstat -s size -n 5
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
15642 weblogic 1919M 1066M run 6 12 0:08.11 20% java/60
15643 weblogic 1748M 892M cpu0 0 12 1:48.01 65% java/60
15636 weblogic 238M 151M sleep 17 12 0:00.15 0.0% java/69
15621 weblogic 165M 44M sleep 12 12 0:00.02 0.0% java/14
15266 clarify 105M 31M sleep 54 0 0:41.40 0.6% rmworkerprocess/6
Total: 63 processes, 402 lwps, load averages: 2.92, 2.88, 2.81


HLW$~> ps -fu weblogic
UID PID PPID C STIME TTY TIME CMD
weblogic 15606 1 0 06:03:09 ? 0:00 /bin/sh ../Harlow_O2_Training/startNodeManager.sh
weblogic 15642 15621 5 06:04:28 ? 95:52 /usr/local/weblogic/jdk142_04/bin/java -client -Xms1024m -Xmx1024m -Xmn400m -XX
weblogic 21686 21681 0 13:49:59 pts/1 0:00 bash
weblogic 22657 21686 0 14:05:35 pts/1 0:00 tail -f Harlow_O2_Training.log
weblogic 15621 15606 0 06:03:09 ? 0:05 /usr/local/weblogic/jdk142_04/bin/java -client -Xms32m -Xmx200m -Xverify:none -
weblogic 15643 15621 12 06:04:28 ? 179:47 /usr/local/weblogic/jdk142_04/bin/java -client -Xms1024m -Xmx1024m -Xmn400m -XX
weblogic 21681 21674 0 13:49:58 pts/1 0:00 -ksh
weblogic 15622 1 0 06:03:15 ? 0:00 /bin/sh ../Harlow_O2_Training/startWebLogic.sh
weblogic 15636 15622 0 06:03:15 ? 1:33 /usr/local/weblogic/jdk142_04/bin/java -server -Xms32m -Xmx200m -XX:MaxPermSize
weblogic 3746 1 0 Apr 18 ? 0:00 tail -f weblogic_18042006.log

Thanks
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0