The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 05:24 AM
cpu utilization of a process iam AIX 2 02-20-2008 01:50 AM
Low average cpu utilization. Moodie SUN Solaris 3 12-11-2007 07:25 PM
% CPU utilization karthikosu UNIX for Dummies Questions & Answers 1 07-28-2006 12:00 PM
CPU Utilization kimosilk UNIX for Dummies Questions & Answers 4 06-13-2005 10:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-18-2006
thinakarmani thinakarmani is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 12
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)?
  #2 (permalink)  
Old 05-18-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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.
  #3 (permalink)  
Old 05-18-2006
thinakarmani thinakarmani is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 12
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0