<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cpu utilization by top command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625402#M236533</link>
    <description>As others have noted glance is a good tool to use to help with this.  A process can have sub-processes known as threads. Each thread can run on a different CPU and the thread total CPU usage is displayed as the CPU useage for the process. As noted, with 4 CPUs you would have a potential total 400% utilization.  With glance you can easlily see how many threads a process has and then get a display of the performance of each thread.  I just checked a system we have running java and it does have many threads.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;George</description>
    <pubDate>Thu, 15 Sep 2005 08:36:21 GMT</pubDate>
    <dc:creator>George Neill</dc:creator>
    <dc:date>2005-09-15T08:36:21Z</dc:date>
    <item>
      <title>cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625391#M236522</link>
      <description>Dear Sirs;&lt;BR /&gt;&lt;BR /&gt;We noticed cpu utilization 95%. When we ran top command; found below resultS:&lt;BR /&gt;&lt;BR /&gt;Load averages: 1.78, 1.81, 1.83&lt;BR /&gt;&lt;BR /&gt;458 processes: 371 sleeping, 87 running&lt;BR /&gt;&lt;BR /&gt;Cpu states:&lt;BR /&gt;&lt;BR /&gt;CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt;&lt;BR /&gt; 0    1.69   3.6%   0.0%  96.4%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt; 1    1.67   6.9%   0.0%  93.1%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt; 2    1.98   7.9%   0.0%  89.9%   2.2%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt; 3    1.79  44.0%   0.0%  56.0%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;---   ----  -  -  -  -  -  -  -  -----&lt;BR /&gt;&lt;BR /&gt;avg   1.78  15.5%   0.0%  83.9%   0.6%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Memory: 4027608K (2679716K) real, 18058048K (7612636K) virtual, 1414296K free  Page# 1/10&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;CPU TTY     PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND&lt;BR /&gt;&lt;BR /&gt; 2   ?    18399 weblogic 152 20  1391M   278M run    526:28 238.44 238.02 java&lt;BR /&gt;&lt;BR /&gt; 2   ?    19591 weblogic 152 20  1391M   257M run    280:18 90.80 90.64 java&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;How come %CPU utilization for java can be 238% ? Also what does CPU 2 signifies?&lt;BR /&gt;&lt;BR /&gt;Is above output of the top command pointing out at some unusual condition ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Wed, 14 Sep 2005 02:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625391#M236522</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-09-14T02:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625392#M236523</link>
      <description>Hey,&lt;BR /&gt;&lt;BR /&gt;You have 4 CPU's, so it's 400% of CPU. If java takes 238%, it means it utilizes 2.4 cpu's.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Wed, 14 Sep 2005 02:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625392#M236523</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-09-14T02:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625393#M236524</link>
      <description>CPU gives the cpu number where application is running.&lt;BR /&gt;&lt;BR /&gt;%CPU is the raw cpu percentage calculated for that top display.&lt;BR /&gt;&lt;BR /&gt;what you are getting for,&lt;BR /&gt;&lt;BR /&gt;# UNIX95= ps -ef -o cpu,pcpu,pid,comm&lt;BR /&gt;&lt;BR /&gt;Top display may be sometimes is not relavent.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 14 Sep 2005 02:49:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625393#M236524</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-14T02:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625394#M236525</link>
      <description>I think 1 cpu max 100% utilization can not more than 100%, your top command report wrong utilization.</description>
      <pubDate>Wed, 14 Sep 2005 02:55:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625394#M236525</guid>
      <dc:creator>morganelan</dc:creator>
      <dc:date>2005-09-14T02:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625395#M236526</link>
      <description>Hi Shiv ,&lt;BR /&gt;&lt;BR /&gt;You are having 4 processor hence java showing 238.02 ,&lt;BR /&gt;&lt;BR /&gt;You can check &lt;BR /&gt;&lt;BR /&gt;# sar -u -M  5 5&lt;BR /&gt;&lt;BR /&gt;for cpu utilisation for all the processor.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Wed, 14 Sep 2005 02:57:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625395#M236526</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-14T02:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625396#M236527</link>
      <description>Java process probably spawns and that's how it can utilize more than one CPU. So 238% make sence.&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Wed, 14 Sep 2005 02:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625396#M236527</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-09-14T02:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625397#M236528</link>
      <description>Hi Shiv,&lt;BR /&gt;what does CPU 2 signifies? That process is running on CPU 2...&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;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...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 14 Sep 2005 03:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625397#M236528</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-09-14T03:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625398#M236529</link>
      <description>Hi Shiv,&lt;BR /&gt;&lt;BR /&gt;You can  check with glance also ,&lt;BR /&gt;&lt;BR /&gt;It will say "CPU Utilisation 400% MAX"  in the heading as you are having 4 cpu.&lt;BR /&gt;&lt;BR /&gt;Also check this script , cpu and memory report can be found in 15 seconds interval , and stores in a file cpumem.log&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Sep 2005 03:05:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625398#M236529</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-14T03:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625399#M236530</link>
      <description>Hi Shiv&lt;BR /&gt;&lt;BR /&gt;1. Generally CPU utilisation should not be this high. Check the process which is eating up CPU utilisation.&lt;BR /&gt;&lt;BR /&gt;2. Suggest to go far "Work Load Manager" from HP in order to allocate resources to CPUs.&lt;BR /&gt;&lt;BR /&gt;3. CPU 2 shows that java process is running on it.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Mahesh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Sep 2005 03:11:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625399#M236530</guid>
      <dc:creator>Mahesh Kumar Malik</dc:creator>
      <dc:date>2005-09-14T03:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625400#M236531</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;%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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;prevQueryString=cpu+AND+top+AND+100+AND+more&amp;amp;mode=id&amp;amp;searchString=UCMDSKBRC00009042&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;dateRange=all&amp;amp;search.x=33&amp;amp;search.y=15" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;prevQueryString=cpu+AND+top+AND+100+AND+more&amp;amp;mode=id&amp;amp;searchString=UCMDSKBRC00009042&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;dateRange=all&amp;amp;search.x=33&amp;amp;search.y=15&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;refer to this KB which recommends Glance for in-depth look at CPU statistic rather than top command:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000071337163" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000071337163&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Wed, 14 Sep 2005 03:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625400#M236531</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-09-14T03:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625401#M236532</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if you run Glance, the output wwill bemuch clearer:&lt;BR /&gt;&lt;BR /&gt;e.g. on a 2 CPU system, the CPU util column will look like...&lt;BR /&gt;&lt;BR /&gt;   CPU Util&lt;BR /&gt;(  200% max)&lt;BR /&gt;------------&lt;BR /&gt;  59.5/13.9&lt;BR /&gt;  13.0/ 3.1&lt;BR /&gt;   9.5/ 0.2&lt;BR /&gt;   9.2/ 0.1&lt;BR /&gt;   8.1/ 0.6&lt;BR /&gt;   6.7/ 4.3&lt;BR /&gt;   5.8/ 1.8&lt;BR /&gt;   5.2/ 0.4&lt;BR /&gt;   2.9/ 0.6&lt;BR /&gt;   2.3/ 0.4&lt;BR /&gt;   2.3/ 0.2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 14 Sep 2005 06:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625401#M236532</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-09-14T06:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625402#M236533</link>
      <description>As others have noted glance is a good tool to use to help with this.  A process can have sub-processes known as threads. Each thread can run on a different CPU and the thread total CPU usage is displayed as the CPU useage for the process. As noted, with 4 CPUs you would have a potential total 400% utilization.  With glance you can easlily see how many threads a process has and then get a display of the performance of each thread.  I just checked a system we have running java and it does have many threads.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;George</description>
      <pubDate>Thu, 15 Sep 2005 08:36:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625402#M236533</guid>
      <dc:creator>George Neill</dc:creator>
      <dc:date>2005-09-15T08:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625403#M236534</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Check withing glance what process 18399 is doing as far as threads, I'm guessing there may be two spinning threads.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Tiom</description>
      <pubDate>Thu, 15 Sep 2005 10:42:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625403#M236534</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2005-09-15T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625404#M236535</link>
      <description>What are the spinning processes and threads ? Thanks.</description>
      <pubDate>Thu, 15 Sep 2005 18:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625404#M236535</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-09-15T18:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625405#M236536</link>
      <description>hi shiva,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Depending on the architecture, the spinning can cause a high load on the system bus, eventually slowing down all other processors.&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 16 Sep 2005 00:14:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625405#M236536</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-09-16T00:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625406#M236537</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;read also: &lt;A href="http://h21007.www2.hp.com/dspp/files/unprotected/hpux/MXN.pdf" target="_blank"&gt;http://h21007.www2.hp.com/dspp/files/unprotected/hpux/MXN.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 16 Sep 2005 02:26:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625406#M236537</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-09-16T02:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625407#M236538</link>
      <description>There's nothing wrong with a system which is sitting at that kind of load.  In fact, I'd say that it's a well spec'd system if you can keep this up on a regular basis.  It's not maxed out, still has plenty of room for other processes to run, and you're making good use of all those processors that you paid good money for.  &lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Fri, 16 Sep 2005 04:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625407#M236538</guid>
      <dc:creator>Stuart Whitby</dc:creator>
      <dc:date>2005-09-16T04:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: cpu utilization by top command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625408#M236539</link>
      <description>top is not very smart about threads so it is accumulating CPU time from all the separate threads that are running. Glance is much better in accounting for thread usage. A lot of Java code is probably out of your control (Java libraries, jar packages, etc. System overhead can be quite high in a poorly written application but you can only fix what you have written yourself. For instance, a simple program might ask the time of day in a loop and generate almost 90% system overhead. The system is working fine but the application is wasting a valuable resource.</description>
      <pubDate>Fri, 16 Sep 2005 08:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization-by-top-command/m-p/3625408#M236539</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-09-16T08:46:10Z</dc:date>
    </item>
  </channel>
</rss>

