<?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.lang.OutOfMemoryError in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676857#M244745</link>
    <description>Because you are not reaching maxdsiz yet, I suspect your problem is rather the size of the Java heap. You need to launch Java with a bigger Maximum heap (e.g. -Xmx256m [256MB]). However, your kernel is badly tuned (although this is not your immediate problem); your max_dbc_pct is left at the default 50% which means that you have a ridiculously large buffer cache. In systems with this much memory, it makes much more sense to set a static buffer cache by setting bufpages to a non-zero value. About 1.6GB or so would be extremely generous.</description>
    <pubDate>Tue, 22 Nov 2005 15:22:46 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-11-22T15:22:46Z</dc:date>
    <item>
      <title>java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676855#M244743</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I'm having some problems with Java (Java RTE/SDK 1.4)in HP-UX 11i:&lt;BR /&gt;$ ${JAVA_HOME}/bin/java  -classpath  $CLASSPATH:.:/TRAP/tushar MemoryTest 64&lt;BR /&gt;Mermory size is: 67108864&lt;BR /&gt;Successfully Captured memory&lt;BR /&gt;Hello World!&lt;BR /&gt;&lt;BR /&gt;the above execution is successully for 64 MB&lt;BR /&gt;&lt;BR /&gt;$ ${JAVA_HOME}/bin/java  -classpath  $CLASSPATH:.:/TRAP/tushar MemoryTest 75&lt;BR /&gt;Mermory size is: 78643200&lt;BR /&gt;Exception in thread "main" java.lang.OutOfMemoryError&lt;BR /&gt;        at java.nio.Bits.reserveMemory(Bits.java:618)&lt;BR /&gt;        at java.nio.DirectByteBuffer.&lt;INIT&gt;(DirectByteBuffer.java:95)&lt;BR /&gt;        at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:285)&lt;BR /&gt;        at MemoryTest.main(MemoryTest.java:10)&lt;BR /&gt;&lt;BR /&gt;the above execution fails for 75 MB&lt;BR /&gt;&lt;BR /&gt;We need to test the above memory program for 10 GB of memory.&lt;BR /&gt;&lt;BR /&gt;I'm including kernel parameters.&lt;BR /&gt;The RAM memory of the server is 96 Gb&lt;BR /&gt;Swap space is 16 Gb&lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanks..&lt;BR /&gt;&lt;/INIT&gt;</description>
      <pubDate>Tue, 22 Nov 2005 14:50:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676855#M244743</guid>
      <dc:creator>Ernesto Rincon</dc:creator>
      <dc:date>2005-11-22T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676856#M244744</link>
      <description>Check your kernel params for max. shared memory segment size for 32/64 bit depending on OS/Java versions. My guess is your values are too low.&lt;BR /&gt;&lt;BR /&gt;For a 64 bit system:&lt;BR /&gt;maxssiz_64bit&lt;BR /&gt;maxtsiz_64bit&lt;BR /&gt;shmmax&lt;BR /&gt;&lt;BR /&gt;If you want to exceed 10GB make sure the values are set to allow that. By default, they're relatively small.</description>
      <pubDate>Tue, 22 Nov 2005 15:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676856#M244744</guid>
      <dc:creator>Jon M Zellhoefer</dc:creator>
      <dc:date>2005-11-22T15:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676857#M244745</link>
      <description>Because you are not reaching maxdsiz yet, I suspect your problem is rather the size of the Java heap. You need to launch Java with a bigger Maximum heap (e.g. -Xmx256m [256MB]). However, your kernel is badly tuned (although this is not your immediate problem); your max_dbc_pct is left at the default 50% which means that you have a ridiculously large buffer cache. In systems with this much memory, it makes much more sense to set a static buffer cache by setting bufpages to a non-zero value. About 1.6GB or so would be extremely generous.</description>
      <pubDate>Tue, 22 Nov 2005 15:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676857#M244745</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-22T15:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676858#M244746</link>
      <description>&lt;BR /&gt;Thanks for your comments Jon and A. Clay, I'm not skillfully with Java, so, could you recommend the values for these kernel parameters, please?&lt;BR /&gt;&lt;BR /&gt;Regards..</description>
      <pubDate>Tue, 22 Nov 2005 16:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676858#M244746</guid>
      <dc:creator>Ernesto Rincon</dc:creator>
      <dc:date>2005-11-22T16:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676859#M244747</link>
      <description>No need just yet because you aren't hitting them yet. This is almost certainly the Java heap. When you get that fixed then you might begin to hit kernel limits.&lt;BR /&gt;&lt;BR /&gt;Set bufpages = 409600 to give you 1.6GB of buffer cache.</description>
      <pubDate>Tue, 22 Nov 2005 16:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676859#M244747</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-22T16:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676860#M244748</link>
      <description>By the way, you might be hitting ulimit values. Execute ulimit -a to be sure; even so, I still betting you need to launch Java with a bigger heap.</description>
      <pubDate>Tue, 22 Nov 2005 17:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/java-lang-outofmemoryerror/m-p/3676860#M244748</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-22T17:23:58Z</dc:date>
    </item>
  </channel>
</rss>

