- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpu utilization by top command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:28 PM
тАО09-13-2005 07:28 PM
We noticed cpu utilization 95%. When we ran top command; found below resultS:
Load averages: 1.78, 1.81, 1.83
458 processes: 371 sleeping, 87 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 1.69 3.6% 0.0% 96.4% 0.0% 0.0% 0.0% 0.0% 0.0%
1 1.67 6.9% 0.0% 93.1% 0.0% 0.0% 0.0% 0.0% 0.0%
2 1.98 7.9% 0.0% 89.9% 2.2% 0.0% 0.0% 0.0% 0.0%
3 1.79 44.0% 0.0% 56.0% 0.0% 0.0% 0.0% 0.0% 0.0%
--- ---- - - - - - - - -----
avg 1.78 15.5% 0.0% 83.9% 0.6% 0.0% 0.0% 0.0% 0.0%
Memory: 4027608K (2679716K) real, 18058048K (7612636K) virtual, 1414296K free Page# 1/10
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
2 ? 18399 weblogic 152 20 1391M 278M run 526:28 238.44 238.02 java
2 ? 19591 weblogic 152 20 1391M 257M run 280:18 90.80 90.64 java
How come %CPU utilization for java can be 238% ? Also what does CPU 2 signifies?
Is above output of the top command pointing out at some unusual condition ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:42 PM
тАО09-13-2005 07:42 PM
Re: cpu utilization by top command
You have 4 CPU's, so it's 400% of CPU. If java takes 238%, it means it utilizes 2.4 cpu's.
Maybe there is some heave operation in progress or maybe something went wrong. You should check deeper to see if you can find an explanation for this high utilization.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:49 PM
тАО09-13-2005 07:49 PM
Re: cpu utilization by top command
%CPU is the raw cpu percentage calculated for that top display.
what you are getting for,
# UNIX95= ps -ef -o cpu,pcpu,pid,comm
Top display may be sometimes is not relavent.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:55 PM
тАО09-13-2005 07:55 PM
Re: cpu utilization by top command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:57 PM
тАО09-13-2005 07:57 PM
Re: cpu utilization by top command
You are having 4 processor hence java showing 238.02 ,
You can check
# sar -u -M 5 5
for cpu utilisation for all the processor.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:58 PM
тАО09-13-2005 07:58 PM
Re: cpu utilization by top command
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:02 PM
тАО09-13-2005 08:02 PM
Re: cpu utilization by top command
what does CPU 2 signifies? That process is running on CPU 2...
I would add after the previous replies, you have 4 CPU they all report a max sys load ( OK no nice...) the 2 process you show run by the same CPU, what is run by the 3 others?
About unusual condition, you are the one who can answer, you only can tell us how it "normally" behaves and if this is the case or not...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:05 PM
тАО09-13-2005 08:05 PM
Re: cpu utilization by top command
You can check with glance also ,
It will say "CPU Utilisation 400% MAX" in the heading as you are having 4 cpu.
Also check this script , cpu and memory report can be found in 15 seconds interval , and stores in a file cpumem.log
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:11 PM
тАО09-13-2005 08:11 PM
Solution1. Generally CPU utilisation should not be this high. Check the process which is eating up CPU utilisation.
2. Suggest to go far "Work Load Manager" from HP in order to allocate resources to CPUs.
3. CPU 2 shows that java process is running on it.
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:24 PM
тАО09-13-2005 08:24 PM
Re: cpu utilization by top command
%WCPU is just a 'forecast' value for the process. It really has no real world value. It's value is totally controlled by the scheduler. refer to this:
http://www1.itrc.hp.com/service/cki/search.do?category=c0&prevQueryString=cpu+AND+top+AND+100+AND+more&mode=id&searchString=UCMDSKBRC00009042&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&dateRange=all&search.x=33&search.y=15
refer to this KB which recommends Glance for in-depth look at CPU statistic rather than top command:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000071337163
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 11:11 PM
тАО09-13-2005 11:11 PM
Re: cpu utilization by top command
if you run Glance, the output wwill bemuch clearer:
e.g. on a 2 CPU system, the CPU util column will look like...
CPU Util
( 200% max)
------------
59.5/13.9
13.0/ 3.1
9.5/ 0.2
9.2/ 0.1
8.1/ 0.6
6.7/ 4.3
5.8/ 1.8
5.2/ 0.4
2.9/ 0.6
2.3/ 0.4
2.3/ 0.2
hope this helps
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 01:36 AM
тАО09-15-2005 01:36 AM
Re: cpu utilization by top command
Regards,
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 03:42 AM
тАО09-15-2005 03:42 AM
Re: cpu utilization by top command
I'm concerned about the high sys CPU, only 15.5% of the CPU is concerned with user.. and a whapping 83.9% is sys CPU. This implies something is doing too much sys calls (usulally IO related), but there could be spinning processes too.
Check withing glance what process 18399 is doing as far as threads, I'm guessing there may be two spinning threads.
Regards
Tiom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 11:23 AM
тАО09-15-2005 11:23 AM
Re: cpu utilization by top command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 05:14 PM
тАО09-15-2005 05:14 PM
Re: cpu utilization by top command
from what i can recall, spinning threads and threads do useful work must compete for logical processors. Thus, spinning threads can impact the performance of multithreaded applications to a greater extent on Threaded systems.
Depending on the architecture, the spinning can cause a high load on the system bus, eventually slowing down all other processors.
hope this helps!
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 07:26 PM
тАО09-15-2005 07:26 PM
Re: cpu utilization by top command
read also: http://h21007.www2.hp.com/dspp/files/unprotected/hpux/MXN.pdf
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 09:40 PM
тАО09-15-2005 09:40 PM
Re: cpu utilization by top command
However, this isn't to say that your application isn't having problems at the moment. (If that's the case, then HP's money-men are laughing at you ;p ) Get tusc and lsof on there and take a look at the processes involved, see if they're looping constantly. If they're doing all sorts of different things, then I wouldn't worry - it's just a busy app. Given the amount of time in system calls though, I'd guess that something is requesting a lot of I/O. I always find that easier to check with top - if it's showing a high percentage of time in kernel mode, then it's likely that something's hammering disk or tape drives.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2005 01:46 AM
тАО09-16-2005 01:46 AM
Re: cpu utilization by top command
Bill Hassell, sysadmin