<?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 Java core dump (OutOfMemory) and kernel setting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600277#M719923</link>
    <description>I have a java application running on HP-UX 11.11 and JDK 1.3.0.00. &lt;BR /&gt;At the moment it dumps core a lot of times with OutOfMemory message.&lt;BR /&gt;&lt;BR /&gt;It would be appreciated if someone can share his/her experience on this matter.&lt;BR /&gt;&lt;BR /&gt;I write down all the information might be needed. &lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Bambang Lestari&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Server Info:&lt;BR /&gt;============&lt;BR /&gt;OS: HP-UX 11.11&lt;BR /&gt;CPU: PA-RISC&lt;BR /&gt;Memory: 4GB&lt;BR /&gt;&lt;BR /&gt;(Currently, it has less both CPU and memory utilization)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kernel Parameters:&lt;BR /&gt;==================&lt;BR /&gt;maxdsiz = 2048MB&lt;BR /&gt;maxdsiz_64bit = 2048MB&lt;BR /&gt;maxssiz = 8MB&lt;BR /&gt;maxssiz_64bit = 8MB&lt;BR /&gt;maxtsiz = 64MB&lt;BR /&gt;maxtsiz_64bit = 1024MB&lt;BR /&gt;max_thread_proc = 3000&lt;BR /&gt;nkthreads = 6000&lt;BR /&gt;nfiles = 30000&lt;BR /&gt;maxfiles = 5000&lt;BR /&gt;maxfiles_lim = 5000&lt;BR /&gt;ncallout = 6000&lt;BR /&gt;nproc = 2068&lt;BR /&gt;swapmem_on = 0&lt;BR /&gt;the rest... (see attachment)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Patches info:&lt;BR /&gt;=============&lt;BR /&gt;The following patches are already installed:&lt;BR /&gt;PHCO_24777&lt;BR /&gt;PHKL_24253&lt;BR /&gt;PHKL_24254&lt;BR /&gt;PHKL_24255&lt;BR /&gt;PHKL_24256&lt;BR /&gt;PHKL_24551&lt;BR /&gt;PHKL_24751&lt;BR /&gt;PHNE_24035&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Swap info:&lt;BR /&gt;==========&lt;BR /&gt;# swapinfo -tm&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        2048       0    2048    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        2048       0    2048    0%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -    1309   -1309&lt;BR /&gt;total      4096    1309    2787   32%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Java info:&lt;BR /&gt;==========&lt;BR /&gt;JDK 1.3.0.00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;User Limits:&lt;BR /&gt;============&lt;BR /&gt;Shell: /usr/bin/ksh (where the java application is running through)&lt;BR /&gt;$ ulimit&lt;BR /&gt;1000000&lt;BR /&gt;&lt;BR /&gt;$ ulimit -a&lt;BR /&gt;ksh: ulimit: bad option(s)&lt;BR /&gt;&lt;BR /&gt;$ sh&lt;BR /&gt;$ ulimit -a&lt;BR /&gt;time(seconds)unlimited&lt;BR /&gt;file(blocks)1000000&lt;BR /&gt;data(kbytes)unlimited&lt;BR /&gt;stack(kbytes)8192&lt;BR /&gt;memory(kbytes)unlimited&lt;BR /&gt;coredump(blocks)4194303&lt;BR /&gt;nofiles(descriptors) 5000&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Core dump info:&lt;BR /&gt;===============&lt;BR /&gt;# file core&lt;BR /&gt;core:core file from 'java'&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Oct 2001 09:01:53 GMT</pubDate>
    <dc:creator>Bambang Lestari</dc:creator>
    <dc:date>2001-10-24T09:01:53Z</dc:date>
    <item>
      <title>Java core dump (OutOfMemory) and kernel setting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600277#M719923</link>
      <description>I have a java application running on HP-UX 11.11 and JDK 1.3.0.00. &lt;BR /&gt;At the moment it dumps core a lot of times with OutOfMemory message.&lt;BR /&gt;&lt;BR /&gt;It would be appreciated if someone can share his/her experience on this matter.&lt;BR /&gt;&lt;BR /&gt;I write down all the information might be needed. &lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Bambang Lestari&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Server Info:&lt;BR /&gt;============&lt;BR /&gt;OS: HP-UX 11.11&lt;BR /&gt;CPU: PA-RISC&lt;BR /&gt;Memory: 4GB&lt;BR /&gt;&lt;BR /&gt;(Currently, it has less both CPU and memory utilization)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kernel Parameters:&lt;BR /&gt;==================&lt;BR /&gt;maxdsiz = 2048MB&lt;BR /&gt;maxdsiz_64bit = 2048MB&lt;BR /&gt;maxssiz = 8MB&lt;BR /&gt;maxssiz_64bit = 8MB&lt;BR /&gt;maxtsiz = 64MB&lt;BR /&gt;maxtsiz_64bit = 1024MB&lt;BR /&gt;max_thread_proc = 3000&lt;BR /&gt;nkthreads = 6000&lt;BR /&gt;nfiles = 30000&lt;BR /&gt;maxfiles = 5000&lt;BR /&gt;maxfiles_lim = 5000&lt;BR /&gt;ncallout = 6000&lt;BR /&gt;nproc = 2068&lt;BR /&gt;swapmem_on = 0&lt;BR /&gt;the rest... (see attachment)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Patches info:&lt;BR /&gt;=============&lt;BR /&gt;The following patches are already installed:&lt;BR /&gt;PHCO_24777&lt;BR /&gt;PHKL_24253&lt;BR /&gt;PHKL_24254&lt;BR /&gt;PHKL_24255&lt;BR /&gt;PHKL_24256&lt;BR /&gt;PHKL_24551&lt;BR /&gt;PHKL_24751&lt;BR /&gt;PHNE_24035&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Swap info:&lt;BR /&gt;==========&lt;BR /&gt;# swapinfo -tm&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        2048       0    2048    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        2048       0    2048    0%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -    1309   -1309&lt;BR /&gt;total      4096    1309    2787   32%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Java info:&lt;BR /&gt;==========&lt;BR /&gt;JDK 1.3.0.00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;User Limits:&lt;BR /&gt;============&lt;BR /&gt;Shell: /usr/bin/ksh (where the java application is running through)&lt;BR /&gt;$ ulimit&lt;BR /&gt;1000000&lt;BR /&gt;&lt;BR /&gt;$ ulimit -a&lt;BR /&gt;ksh: ulimit: bad option(s)&lt;BR /&gt;&lt;BR /&gt;$ sh&lt;BR /&gt;$ ulimit -a&lt;BR /&gt;time(seconds)unlimited&lt;BR /&gt;file(blocks)1000000&lt;BR /&gt;data(kbytes)unlimited&lt;BR /&gt;stack(kbytes)8192&lt;BR /&gt;memory(kbytes)unlimited&lt;BR /&gt;coredump(blocks)4194303&lt;BR /&gt;nofiles(descriptors) 5000&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Core dump info:&lt;BR /&gt;===============&lt;BR /&gt;# file core&lt;BR /&gt;core:core file from 'java'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Oct 2001 09:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600277#M719923</guid>
      <dc:creator>Bambang Lestari</dc:creator>
      <dc:date>2001-10-24T09:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Java core dump (OutOfMemory) and kernel setting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600278#M719924</link>
      <description>Get Jconfig to report on kernel params.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/java2/hpjconfig/index.html" target="_blank"&gt;http://www.hp.com/products1/unix/java/java2/hpjconfig/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jmeter can analyse your applications:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/hpjmeter/index.html" target="_blank"&gt;http://www.hp.com/products1/unix/java/hpjmeter/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The Java perf page gives a generic sam kernel tunable set.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.devresource.hp.com/JavaATC/JavaPerfTune/index.html" target="_blank"&gt;http://www.devresource.hp.com/JavaATC/JavaPerfTune/index.html&lt;/A&gt;&lt;BR /&gt;and instructions how to install it:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Java Generic Server&lt;BR /&gt;&lt;BR /&gt;maxusers 400&lt;BR /&gt;max_thread_proc maxusers*3&lt;BR /&gt;maxfiles 2048&lt;BR /&gt;maxfiles_lim 2048&lt;BR /&gt;ncallout 2*((((nproc*7)/4)+16)*2)&lt;BR /&gt;nkthread 2*max_thread_proc&lt;BR /&gt;nfile (2*nproc)+1000&lt;BR /&gt;nproc ((maxusers*5)+64)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Oct 2001 09:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600278#M719924</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-24T09:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Java core dump (OutOfMemory) and kernel setting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600279#M719925</link>
      <description>Bambang,&lt;BR /&gt;&lt;BR /&gt;I noticed you had swapmem_on 0. You should set that to 1 (true) to avoid swap issues. &lt;BR /&gt;&lt;BR /&gt;I have a question for you. How much memory are you setting for your heap size (-Xms256m -Xmn256 -Xmn64m). The reason that I ask, is that I am having issues getting my heap beyond 800mb on a similar environment that you have and I was curious if you were able to get to a full 1024mb or 1gb of Heap?&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 17 May 2002 19:02:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600279#M719925</guid>
      <dc:creator>Stephen Feldman</dc:creator>
      <dc:date>2002-05-17T19:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Java core dump (OutOfMemory) and kernel setting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600280#M719926</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;    I have a similar problem. A java application works with a java heap of 512 Mg but if we set a java heap of 800 Mg it doesn??t work. Have you solved your problem?&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2002 13:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600280#M719926</guid>
      <dc:creator>oiram</dc:creator>
      <dc:date>2002-06-12T13:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Java core dump (OutOfMemory) and kernel setting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600281#M719927</link>
      <description>I have had similar issues allocating a larger heap size. I have been able to set -mx to 1498 but never higher. This seems to have made the system more prone for memory faults. I set high maxtsiz_64 and maxdsiz_64 which may or may not be appropriate for your system&lt;BR /&gt;&lt;BR /&gt;maxdsiz_64=17179869186&lt;BR /&gt;maxtsiz_64=1073741824&lt;BR /&gt;maxssiz_64=137922056&lt;BR /&gt;&lt;BR /&gt;These were also set to support a different app on system, not just my java app. I have found that the java applications runs much more reliably with -mx=850. Make sure patches are up to date&lt;BR /&gt;&lt;BR /&gt;I'm not sure if this will help your situation or be appropriate.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Mar 2003 01:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600281#M719927</guid>
      <dc:creator>John Argo</dc:creator>
      <dc:date>2003-03-13T01:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Java core dump (OutOfMemory) and kernel setting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600282#M719928</link>
      <description>Bambang,&lt;BR /&gt;  You could look at this document about getting more memory space from a 32-bit java such as the java 1.3 releases.&lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1_3/expanding_memory.html" target="_blank"&gt;http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1_3/expanding_memory.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;John,&lt;BR /&gt;  As I noted in reply to your February question- " JDK on HP-UX 11i 64 or 32 bit?", you can't get to the 64 bit address limits with a java 1.3 release.  The java 1.4 releases include support for a -d64 option to get 64 bit addresses. You will need new 64-bit versions of any JNI libraries that you use. There are details in the release notes-&lt;BR /&gt;&lt;A href="http://www.hp.com/products1/unix/java/java2/sdkrte14/infolibrary/sdk_rnotes_1.4.1.00.html#HotSpot_options" target="_blank"&gt;http://www.hp.com/products1/unix/java/java2/sdkrte14/infolibrary/sdk_rnotes_1.4.1.00.html#HotSpot_options&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 16 Mar 2003 03:58:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-core-dump-outofmemory-and-kernel-setting/m-p/2600282#M719928</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-03-16T03:58:39Z</dc:date>
    </item>
  </channel>
</rss>

