<?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 JMS CLIENT  java.lang.OutOfMemoryError in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346256#M2679</link>
    <description>Hi Rick,&lt;BR /&gt;&lt;BR /&gt;first I have tried the  -Xdynclassgc switch. this caused a core dump and a segmentation fault. So i left this one out.&lt;BR /&gt;&lt;BR /&gt;i am now attaching the log from the garbage collector as you have suggested. i am not too sure how to read it. it contains 12 hours worth of data. &lt;BR /&gt;could you pls advise on what to make of it.&lt;BR /&gt;&lt;BR /&gt;with regards to the new java version have not deployed as yet. However when i downloaded the JVM 1.4.2-8 it said that it is for operating system version 5.1. our system still operates on version 4.0F. My question will this have an impact?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;tony&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 05 Feb 2009 08:43:26 GMT</pubDate>
    <dc:creator>ANTHONY CREMONA</dc:creator>
    <dc:date>2009-02-05T08:43:26Z</dc:date>
    <item>
      <title>JAVA JMS CLIENT  java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346252#M2675</link>
      <description>We have a TRU64 UNIX with OSF1 OS with the operating system version 4.0F.&lt;BR /&gt;We have Java 1.4.2-6 installed on the alpha box. I have recently installed a JMS client &lt;BR /&gt;application on this box. The JMS client uses the  Spring framework. &lt;BR /&gt;we only have limited memory available ,2GB RAM. This box hosts some very critical applications to our company so resources are at a premium.&lt;BR /&gt;&lt;BR /&gt;the JVM arguments i have used for this JMS client are as follows:&lt;BR /&gt;&lt;BR /&gt;java  -client -Xms64M -Xmx150M &lt;BR /&gt;&lt;BR /&gt;the memory usage by the JVM starts off well for the first couple of hours in fact it consumes about 130M in resident memory. But  4 hours later it is consuming around 210M in resident memory.&lt;BR /&gt;&lt;BR /&gt;Some time later, maybe  a day or two later it generates the error OutOfMemory.&lt;BR /&gt;&lt;BR /&gt;any suggestions to overcome this problem?&lt;BR /&gt;any assitance is most appreciated. &lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;tony</description>
      <pubDate>Wed, 28 Jan 2009 09:20:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346252#M2675</guid>
      <dc:creator>ANTHONY CREMONA</dc:creator>
      <dc:date>2009-01-28T09:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA JMS CLIENT  java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346253#M2676</link>
      <description>Tony,&lt;BR /&gt;  You may want to consider upgrading to the latest version of Java for Tru64 Unix.&lt;BR /&gt;&lt;BR /&gt;The latest version is 1.4.2-8.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h18012.www1.hp.com/java/documentation/1.4.2/unix/docs/release_notes.html" target="_blank"&gt;http://h18012.www1.hp.com/java/documentation/1.4.2/unix/docs/release_notes.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The reason I ask is because in Java 1.4.2-7 there were several issues that were addressed that had to do directly with garbage collections that could be related to your problem.&lt;BR /&gt;&lt;BR /&gt;In addition, the process that is running the application, what are it's ulimit values. Are they high enough to give Java what it needs to run without having to do multiple GC's over and over?&lt;BR /&gt;&lt;BR /&gt;Do you make use of the -Xdynclassgc resource to allow Java to recover dynamically allocated classes that accumulate over time in a Java application that runs for long periods of time?&lt;BR /&gt;&lt;BR /&gt;Finally, if you find that the problem continues after looking into the things I've listed above, you may want to capture a session's memory usage by using the &lt;BR /&gt;Java -Xverbosegc:file:hpsupport_gc.log -Xms*m -Xmx*m &lt;APPLICATION-NAME&gt;  &lt;BR /&gt;&lt;BR /&gt;(-Xverbosegc) memory data collection to provide to the HP Java Support team for analysis.  Perhaps they will be able to advise you on what is possibly going on.&lt;BR /&gt;&lt;BR /&gt;And don't forget to check with the vendor for the application, they may already know about the memory leak and they can further advise you on what the possible fix could be.&lt;BR /&gt;&lt;BR /&gt;I hope this gives you some direction.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Rick Retterer&lt;BR /&gt;&lt;BR /&gt;&lt;/APPLICATION-NAME&gt;</description>
      <pubDate>Thu, 29 Jan 2009 02:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346253#M2676</guid>
      <dc:creator>Rick Retterer</dc:creator>
      <dc:date>2009-01-29T02:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA JMS CLIENT  java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346254#M2677</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;yes. this certainly gives me some direction.&lt;BR /&gt;&lt;BR /&gt;much appreciate. I will start to work on these suggestions.&lt;BR /&gt;&lt;BR /&gt;thank you.&lt;BR /&gt;&lt;BR /&gt;tony</description>
      <pubDate>Thu, 29 Jan 2009 08:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346254#M2677</guid>
      <dc:creator>ANTHONY CREMONA</dc:creator>
      <dc:date>2009-01-29T08:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA JMS CLIENT  java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346255#M2678</link>
      <description>You are very welcome.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Rick&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Feb 2009 15:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346255#M2678</guid>
      <dc:creator>Rick Retterer</dc:creator>
      <dc:date>2009-02-02T15:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA JMS CLIENT  java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346256#M2679</link>
      <description>Hi Rick,&lt;BR /&gt;&lt;BR /&gt;first I have tried the  -Xdynclassgc switch. this caused a core dump and a segmentation fault. So i left this one out.&lt;BR /&gt;&lt;BR /&gt;i am now attaching the log from the garbage collector as you have suggested. i am not too sure how to read it. it contains 12 hours worth of data. &lt;BR /&gt;could you pls advise on what to make of it.&lt;BR /&gt;&lt;BR /&gt;with regards to the new java version have not deployed as yet. However when i downloaded the JVM 1.4.2-8 it said that it is for operating system version 5.1. our system still operates on version 4.0F. My question will this have an impact?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;tony&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2009 08:43:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346256#M2679</guid>
      <dc:creator>ANTHONY CREMONA</dc:creator>
      <dc:date>2009-02-05T08:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA JMS CLIENT  java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346257#M2680</link>
      <description>Hi Tony,&lt;BR /&gt;  I don't see anything abnormal in the output log file you previously attached.&lt;BR /&gt;&lt;BR /&gt;But again, this tool may have truncated the file you attached as well.  I believe there is a 1mb limit on the size of files you can attach here.&lt;BR /&gt;&lt;BR /&gt;Maybe try attaching the last 500 lines of the log file here.&lt;BR /&gt;&lt;BR /&gt;I'm also concerned that the use of the -Xdynclassgc caused your JVM to crash.  Are you using the FASTVM?&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;# java -version&lt;BR /&gt;&lt;BR /&gt;java version "1.4.2"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition&lt;BR /&gt;Fast VM (build 1.4.2-7, native threads, mixed mode, 11/20/2007-11:43)&lt;BR /&gt;&lt;BR /&gt;What happens if you issue this command:&lt;BR /&gt;&lt;BR /&gt;# java -Xverbosegc:file:hpsupport.log -version&lt;BR /&gt;&lt;BR /&gt;Does the file get created or do you get a segmentation fault?&lt;BR /&gt;&lt;BR /&gt;Rick&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346257#M2680</guid>
      <dc:creator>Rick Retterer</dc:creator>
      <dc:date>2009-02-05T16:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA JMS CLIENT  java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346258#M2681</link>
      <description>In addition:&lt;BR /&gt;&lt;BR /&gt;# java -Xdynclassgc -Xverbosegc:file:hpsupport.log -version&lt;BR /&gt;java version "1.4.2"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition&lt;BR /&gt;Fast VM (build 1.4.2-7, native threads, mixed mode, 11/20/2007-11:43)&lt;BR /&gt;&lt;BR /&gt;# more hpsupport.log&lt;BR /&gt;&lt;BR /&gt;&amp;lt; garbage="" collection="" totals=""&amp;gt;&lt;BR /&gt;&amp;lt; number="" of="" collections="" ="" 0=""&amp;gt;&lt;BR /&gt;&amp;lt; time="" spent="" collecting="" ="" 0.00="" seconds=""&amp;gt;&lt;BR /&gt;&amp;lt; total=""&amp;gt;&lt;BR /&gt;&amp;lt; maximum="" heap="" size="" ="" 16.00="" mb=""&amp;gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:49:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346258#M2681</guid>
      <dc:creator>Rick Retterer</dc:creator>
      <dc:date>2009-02-05T16:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA JMS CLIENT  java.lang.OutOfMemoryError</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346259#M2682</link>
      <description>Hi Rick,&lt;BR /&gt;&lt;BR /&gt;1) the java being used is:&lt;BR /&gt;&lt;BR /&gt; /usr/opt/java142/bin/java -version&lt;BR /&gt;java version "1.4.2"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition&lt;BR /&gt;Fast VM (build 1.4.2-6, native threads, mixed mode, 01/09/2007-23:17)&lt;BR /&gt;&lt;BR /&gt;2) the settings at the moment are:&lt;BR /&gt;&lt;BR /&gt;java -Xverbosegc:file:hpsupport_gc.log -client -Xms64M -Xmx356M&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3) I am now attaching 24 hours worth of data&lt;BR /&gt;from the gc log. the file is only 80KB. The file has 1386 lines in it. let me know if you get it all.&lt;BR /&gt;&lt;BR /&gt; When it starts out :&lt;BR /&gt;&lt;BR /&gt;GC: Garbage Collection #1 with 64.00 MB Heap (Compacting)&amp;gt;&lt;BR /&gt;&amp;lt; time="" since="" last="" collection="" ="" 273.22="" seconds=""&amp;gt;&lt;BR /&gt;&amp;lt; time="" spent="" collecting="" ="" 0.17="" seconds=""&amp;gt;&lt;BR /&gt;&amp;lt; data="" live="" before="" collection="" ="" 63.13="" mb=""&amp;gt;&lt;BR /&gt;&amp;lt; data="" live="" after="" collection="" ="" 3.55="" mb=""&amp;gt;&lt;BR /&gt;&amp;lt; data="" pinned="" during="" collection="" ="" 1.77="" mb=""&amp;gt;&lt;BR /&gt;&lt;BR /&gt;24 hrs later we have:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;GC: Garbage Collection #231 with 260.00 MB Heap (Compacting, minor)&amp;gt;&lt;BR /&gt;&amp;lt; time="" since="" last="" collection="" ="" 543.50="" seconds=""&amp;gt;&lt;BR /&gt;&amp;lt; time="" spent="" collecting="" ="" 2.13="" seconds=""&amp;gt;&lt;BR /&gt;&amp;lt; data="" live="" before="" collection="" ="" 259.81="" mb=""&amp;gt;&lt;BR /&gt;&amp;lt; data="" live="" after="" collection="" ="" 185.91="" mb=""&amp;gt;&lt;BR /&gt;&amp;lt; data="" pinned="" during="" collection="" ="" 1.61="" mb=""&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;doesn't this mean that the HEAP size is continually expanding? we started off with 3.55MB data after collection and now we have&lt;BR /&gt;185.9MB data after collection.&lt;BR /&gt;&lt;BR /&gt;4)  when I run the following command there is no segmentation fault and the file is created.&lt;BR /&gt;&lt;BR /&gt;java -Xverbosegc:file:hpsupport.log -version &lt;BR /&gt;&lt;BR /&gt;5) when I run the following command there is no segmentation fault either and the file is created.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;java -Xdynclassgc -Xverbosegc:file:hpsupport.log -version&lt;BR /&gt;&lt;BR /&gt;6) i should add that now I am using the standby machine for testing rather than the &lt;BR /&gt;active production machine as I was before. The standby has the exact same hardware and software implementation. &lt;BR /&gt;The only difference on the standby is that there is a lot less activity, therefore much more memory available.&lt;BR /&gt;&lt;BR /&gt;7) I should also add that the JMS Client all of this time, is idle. we have NOT started pumping any messages thru it. First we have to stabilise the JMS client.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2009 20:57:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/java-jms-client-java-lang-outofmemoryerror/m-p/4346259#M2682</guid>
      <dc:creator>ANTHONY CREMONA</dc:creator>
      <dc:date>2009-02-05T20:57:42Z</dc:date>
    </item>
  </channel>
</rss>

