<?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: Java &amp;quot;JVM Thread&amp;quot; is consuming CPU in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914214#M931561</link>
    <description>What about garbage collection?&lt;BR /&gt;(run application with -verbose:gc and check frequency/duration of GC's)</description>
    <pubDate>Thu, 27 Feb 2003 09:58:10 GMT</pubDate>
    <dc:creator>Carlo Montanari</dc:creator>
    <dc:date>2003-02-27T09:58:10Z</dc:date>
    <item>
      <title>Java "JVM Thread" is consuming CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914211#M931558</link>
      <description>Our application in HPUX (PA , 4 CPUs) is consuming a lot CPU even in idle state.&lt;BR /&gt;The JDK is 1.3.1.08 and OS version is 11 &lt;BR /&gt;After analyzing with glance and comparing the thread Ids with full thread dump I found that&lt;BR /&gt;1. The thread consuming most of the CPU (60%) is "JVM Thread" (as stated in full thread dump) , so we can't use java profiler, because it's internal JVM code, not our...  in fact the profiler is showing that "our" (i.e. the application threads were mostly in wait )&lt;BR /&gt;&lt;BR /&gt;2. The consumption is on "User" time, so we can't use tusc&lt;BR /&gt;&lt;BR /&gt;3. According to OS admin, the  OS has all the requiered patches (I know, I have to confirm that persanally)&lt;BR /&gt;&lt;BR /&gt;Application details : uses about 100 threads , -Xms256M -Xmx1024M (consumes ~256 M actually) &amp;lt;50 sockets, idle when tested ... ~0 other I/O &lt;BR /&gt;&lt;BR /&gt;Any idea ?</description>
      <pubDate>Wed, 26 Feb 2003 21:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914211#M931558</guid>
      <dc:creator>Gabriel Sala</dc:creator>
      <dc:date>2003-02-26T21:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Java "JVM Thread" is consuming CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914212#M931559</link>
      <description>You have blocked most of my usual avenues of investigation.&lt;BR /&gt;&lt;BR /&gt;Java is current, and you say all the patches are in.&lt;BR /&gt;&lt;BR /&gt;I'm curious and can place a tool in your hands to collect more data.  Script attached.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 26 Feb 2003 22:12:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914212#M931559</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-02-26T22:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Java "JVM Thread" is consuming CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914213#M931560</link>
      <description>Sorry, another idea.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/java2/hpjtune/index.html" target="_blank"&gt;http://www.hp.com/products1/unix/java/java2/hpjtune/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A performance measurement tool.  You may have already tried this.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 26 Feb 2003 22:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914213#M931560</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-02-26T22:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Java "JVM Thread" is consuming CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914214#M931561</link>
      <description>What about garbage collection?&lt;BR /&gt;(run application with -verbose:gc and check frequency/duration of GC's)</description>
      <pubDate>Thu, 27 Feb 2003 09:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914214#M931561</guid>
      <dc:creator>Carlo Montanari</dc:creator>
      <dc:date>2003-02-27T09:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java "JVM Thread" is consuming CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914215#M931562</link>
      <description>After all, I had to travel to the customer place.&lt;BR /&gt;&lt;BR /&gt;We found :&lt;BR /&gt;1. Effectively, not all patches were applied .&lt;BR /&gt;The customer uses a "conservative" policy on patch application.&lt;BR /&gt;&lt;BR /&gt;2. A very old version of one of the components, that called gc frequently.&lt;BR /&gt;(All the tests were realized with the latest version , thats why we couldnt reproduce the problem)&lt;BR /&gt;&lt;BR /&gt;After we replaced that version of component by the latest one (that is not calling gc), the CPU usage decreased to  1-3% (without applying the OS patches) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to all !!!&lt;BR /&gt;&lt;BR /&gt;P.S. The last question I have now is : "Why the frequent gc() is increasing CPU usage of JVM Thread , not the thread that is calling gc"... &lt;BR /&gt;but, anyway, this question is more theoric, everything is working fine now. :)</description>
      <pubDate>Fri, 28 Feb 2003 17:04:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914215#M931562</guid>
      <dc:creator>Gabriel Sala</dc:creator>
      <dc:date>2003-02-28T17:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Java "JVM Thread" is consuming CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914216#M931563</link>
      <description>The gc is done by the JVM, not by the user thread which requested it (and usually it's not requested by an user thread, it's triggered by a low memory condition).&lt;BR /&gt;The memory freed or moved by the gc can belong to many other threads, not only to the requestor, so the work is done by JVM itself.&lt;BR /&gt;(Not really an immediate answer, I know :))</description>
      <pubDate>Fri, 11 Apr 2003 08:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-quot-jvm-thread-quot-is-consuming-cpu/m-p/2914216#M931563</guid>
      <dc:creator>Carlo Montanari</dc:creator>
      <dc:date>2003-04-11T08:12:46Z</dc:date>
    </item>
  </channel>
</rss>

