<?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 performance problems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144374#M900710</link>
    <description>Hi,&lt;BR /&gt;unfortunatly I already saw this behavious on one of my customer, using a custom application (written in Basic).&lt;BR /&gt;&lt;BR /&gt;I was able to alleviate the problem, applying some patches and some kernel tuning.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;First: if you can , i suggest you to to to java 1.4.1, it's more stable and performant. See if it is advisable and if it help.&lt;BR /&gt;&lt;BR /&gt;Kernel parameters: he had some unusually huge value here:&lt;BR /&gt;&lt;BR /&gt;dbc_max_pct    &lt;BR /&gt;(calculate to have 400Mb ram, no more)&lt;BR /&gt;&lt;BR /&gt;ninode&lt;BR /&gt; fix it, let's say 4096&lt;BR /&gt;vx_ninode&lt;BR /&gt; fix it, let's say 3874 (usually 90%*nindoe)&lt;BR /&gt;&lt;BR /&gt;these are the CACHE for hfs/vxfs&lt;BR /&gt;&lt;BR /&gt;Other system paramters:&lt;BR /&gt;bufcache_hash_locks from 4096 to 2048&lt;BR /&gt;ftable_hash_locks   from 4096 to 2048&lt;BR /&gt;vnode_cd_hash_locks from 4096 to 2048&lt;BR /&gt;vnode_hash_locks    from 4096 to 2048&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the reduction of this can alleviate the SYSTEM part.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PATCHES: here folows the list i used, for enabling fast vxfs file retriaval, avoiding some memory leak and so on:&lt;BR /&gt;&lt;BR /&gt;PHKL_29110, &lt;BR /&gt;PHKL_25995, PHKL_25994, PHKL_25993, PHKL_28983 fast file description&lt;BR /&gt;PHKL_29047&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PHKL_29611 - vx 3.5 mem leak&lt;BR /&gt;PHCO_29603 - vx 3.5 mem leak&lt;BR /&gt;PHCO_29495 - libc cumulative&lt;BR /&gt;&lt;BR /&gt;###PHKL_27091, PHKL_27294, PHKL_27093 and PHKL_27094. sleep/wake up&lt;BR /&gt;PHKL_29707 (ex 27294)&lt;BR /&gt;PHKL_29706 (ex 27091)&lt;BR /&gt;PHKL_28238 (ex 27093)&lt;BR /&gt;PHKL_27094&lt;BR /&gt;&lt;BR /&gt;PHKL_29115 performance degradation of jfs&lt;BR /&gt;PHKL_29527 performance buffercache&lt;BR /&gt;PHKL_29985 performance mmap&lt;BR /&gt;PHCO_29495 libc cumulative&lt;BR /&gt;PHKL_29611 - vx 3.5 mem leak&lt;BR /&gt;PHCO_29603 - vx 3.5 mem leak&lt;BR /&gt;PHNE_29211 - ONC/NFS general performance&lt;BR /&gt;&lt;BR /&gt;  HTH,&lt;BR /&gt;    Massimo&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Dec 2003 05:35:07 GMT</pubDate>
    <dc:creator>Massimo Bianchi</dc:creator>
    <dc:date>2003-12-15T05:35:07Z</dc:date>
    <item>
      <title>Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144373#M900709</link>
      <description>Hi Folks,&lt;BR /&gt;&lt;BR /&gt;Was wondering if anyone had any tips with regards to a performance problem I am having.  On one of our 11i servers, we have a java application running (using HP's java v1.3.1).  The symptom is that there is a high run queue (up to 6) on the machine, even though CPU usage at the time is low (around 5%).  This is a dual CPU PA-RISC server with two 875 MHz cpu's, with 4GB ram.  And I can't figure out what's causing the high run queue with a tiny CPU load.  Also, this only seems to happen on one CPU, the other CPU seems to run normally.&lt;BR /&gt;&lt;BR /&gt;When I look closer using gpm, I notice that when looking at the wait states of the java threads, the majority of the time spent waiting was on a resource labeled "system".  Apparently this is a catch-all for other wait states that are either not common, or too small to warrant thier own wait state.  Having a look at other servers around this site reveals that this wait state is hardly ever higher than about 15%, but on these processes, it is more like 85%!  &lt;BR /&gt;&lt;BR /&gt;Does anyone have any suggestions?  Or has anyone seen this behaviour before?&lt;BR /&gt;&lt;BR /&gt;(NB, I have run HPjconfig, and applied kernel mods and patches)&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;- Andrew Gray&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2003 00:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144373#M900709</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2003-12-15T00:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144374#M900710</link>
      <description>Hi,&lt;BR /&gt;unfortunatly I already saw this behavious on one of my customer, using a custom application (written in Basic).&lt;BR /&gt;&lt;BR /&gt;I was able to alleviate the problem, applying some patches and some kernel tuning.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;First: if you can , i suggest you to to to java 1.4.1, it's more stable and performant. See if it is advisable and if it help.&lt;BR /&gt;&lt;BR /&gt;Kernel parameters: he had some unusually huge value here:&lt;BR /&gt;&lt;BR /&gt;dbc_max_pct    &lt;BR /&gt;(calculate to have 400Mb ram, no more)&lt;BR /&gt;&lt;BR /&gt;ninode&lt;BR /&gt; fix it, let's say 4096&lt;BR /&gt;vx_ninode&lt;BR /&gt; fix it, let's say 3874 (usually 90%*nindoe)&lt;BR /&gt;&lt;BR /&gt;these are the CACHE for hfs/vxfs&lt;BR /&gt;&lt;BR /&gt;Other system paramters:&lt;BR /&gt;bufcache_hash_locks from 4096 to 2048&lt;BR /&gt;ftable_hash_locks   from 4096 to 2048&lt;BR /&gt;vnode_cd_hash_locks from 4096 to 2048&lt;BR /&gt;vnode_hash_locks    from 4096 to 2048&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the reduction of this can alleviate the SYSTEM part.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PATCHES: here folows the list i used, for enabling fast vxfs file retriaval, avoiding some memory leak and so on:&lt;BR /&gt;&lt;BR /&gt;PHKL_29110, &lt;BR /&gt;PHKL_25995, PHKL_25994, PHKL_25993, PHKL_28983 fast file description&lt;BR /&gt;PHKL_29047&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PHKL_29611 - vx 3.5 mem leak&lt;BR /&gt;PHCO_29603 - vx 3.5 mem leak&lt;BR /&gt;PHCO_29495 - libc cumulative&lt;BR /&gt;&lt;BR /&gt;###PHKL_27091, PHKL_27294, PHKL_27093 and PHKL_27094. sleep/wake up&lt;BR /&gt;PHKL_29707 (ex 27294)&lt;BR /&gt;PHKL_29706 (ex 27091)&lt;BR /&gt;PHKL_28238 (ex 27093)&lt;BR /&gt;PHKL_27094&lt;BR /&gt;&lt;BR /&gt;PHKL_29115 performance degradation of jfs&lt;BR /&gt;PHKL_29527 performance buffercache&lt;BR /&gt;PHKL_29985 performance mmap&lt;BR /&gt;PHCO_29495 libc cumulative&lt;BR /&gt;PHKL_29611 - vx 3.5 mem leak&lt;BR /&gt;PHCO_29603 - vx 3.5 mem leak&lt;BR /&gt;PHNE_29211 - ONC/NFS general performance&lt;BR /&gt;&lt;BR /&gt;  HTH,&lt;BR /&gt;    Massimo&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2003 05:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144374#M900710</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-12-15T05:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144375#M900711</link>
      <description>I was forgetting: how do you start the java machine ?&lt;BR /&gt;&lt;BR /&gt;Maybe it's a simple problem of parameters, maybe too many ram and the garbage collector of java it's not so smart....&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2003 05:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144375#M900711</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-12-15T05:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144376#M900712</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for those tips.  I'll go through them and post the results!  Thanks!&lt;BR /&gt;&lt;BR /&gt;- Andrew Gray&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2003 19:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144376#M900712</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2003-12-15T19:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144377#M900713</link>
      <description>The runqueue is a measure of the number of processes running or waiting to run but no CPU is available. It is quite trivial to create some code which momentarily asks the kernel to do something (like provide the current date or open a file) and then terminate. Repeat this 500 times per second and the kernel will have a very high runqueue (I've seen 50 to 500) because of the large number of short-lived processes. The system state is not a catchall. Thye problem is that the state of a program can change dozens of times per second--humans are far too slow to comprehend what is happening. Glance is just trying to display a meaningful state within it's very long measurement window. &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;As far as the difference between different servers, unless they are all running the version of HP-UX, the same set of patches, the same kernel parameters and the same application code, it will be difficult to draw any conclusions.</description>
      <pubDate>Mon, 15 Dec 2003 20:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144377#M900713</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-12-15T20:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144378#M900714</link>
      <description>Hi Bill, Thanks for the reply.  &lt;BR /&gt;&lt;BR /&gt;So what you're saying is that if it has a high run queue, it's not necessarily a bad thing?  Especially if the cpu usage is still low?&lt;BR /&gt;&lt;BR /&gt;But still, it would be good to know why it has a high run queue, don't you think?  It's not like the example you gave because there aren't lots of short-lived processes running on the system, but it may be something else?&lt;BR /&gt;&lt;BR /&gt;Any other ideas or suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;- Andrew &lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2003 21:08:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144378#M900714</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2003-12-15T21:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144379#M900715</link>
      <description>Oh, for your information, attached is the java start up script with the command line options etc.&lt;BR /&gt;&lt;BR /&gt;note I have added an option for performance monitoring temporarily (ie the -Xeprof option).&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;- Andrew Gray&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2003 21:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144379#M900715</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2003-12-15T21:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144380#M900716</link>
      <description>&amp;gt; So what you're saying is that if it has a high run queue, it's not necessarily a bad thing? Especially if the cpu usage is still low?&lt;BR /&gt;&lt;BR /&gt;That's correct. It does indicate that the processes spend the majority of their time waiting on system calls. An example would be a program that calls select() in a tight loop (bad programming technique). There will be high system overhead and a bunch of these programs (or threads) will create a high runqueue but not consume a lot of CPU time. &lt;BR /&gt;&lt;BR /&gt;&amp;gt; But still, it would be good to know why it has a high run queue, don't you think? It's not like the example you gave because there aren't lots of short-lived processes running on the system, but it may be something else?&lt;BR /&gt;&lt;BR /&gt;Yes, figuring out what is happening will be useful. Java threads are particularly tricky to debug since some of the code can be in libraries. On the other hand, the system is probably fairly responsive, it may not be worth the effort to track down the reason(s).</description>
      <pubDate>Tue, 16 Dec 2003 20:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144380#M900716</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-12-16T20:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144381#M900717</link>
      <description>Thanks Bill, appreciate that input.  I'll still apply those kernel parameters and patches suggested by Massimo Bianchi.  I am implementing them tonight.  &lt;BR /&gt;&lt;BR /&gt;One other question I have is why it would only ever be on the first CPU on a dual CPU system??  Seems strange to me?  Is it a symptom of bad programming, or should we have more JVM's running?  What do people think?&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;- Andrew Gray&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Dec 2003 22:10:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144381#M900717</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2003-12-21T22:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Java performance problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144382#M900718</link>
      <description>The scheduling algorithm is fairly straightforward but because the processes are generating system calls and very little runtime, the monarch processor (the primary CPU as defined by the kernel) will tend to get most of the processing. Once long term processes start running (something that computes for several secs/mins) then CPU 2 will get busy. Try this simple shell code to create 100% CPU usage:&lt;BR /&gt; &lt;BR /&gt;while :&lt;BR /&gt;do&lt;BR /&gt;:&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;You can start 2 or 3 of these at the same time to see how the system allocates CPU usage. Since the Java code lasts for such a short time, you should not see much of a difference in response time.</description>
      <pubDate>Mon, 22 Dec 2003 08:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-performance-problems/m-p/3144382#M900718</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-12-22T08:48:59Z</dc:date>
    </item>
  </channel>
</rss>

