<?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 HP-11i: huge memory requested by a trivial Java app in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-11i-huge-memory-requested-by-a-trivial-java-app/m-p/3064340#M904282</link>
    <description>Hi folk,&lt;BR /&gt;I have a strange behaviour on HP11i machines (32-bit). When I run a very simple Java app (Hello world!), memory size listed by top command jumps immediately to 204MB!! Same Java main on another HP11i (same model and type but 64-bit) required just about 4 MB.... I applied all patches on 32-bit machines; I also had a look at Kernel configuration, but I did not find relevant differences... Furthermore, if I run java with different heap max size (via -Xmx option), memory size increases if I put big max heap size value, and decrease otherwise. If I run java with -classic option, memory size decreases (about one half), but it is still too much.... I tried also to change the JVM (1.3.1_02, 1.3.1_08, 1.3.0xx), but the issue remains... and on 64-bit machines everything works fine with every JVM a tested...  It seems, all the space that could be needed by the app is allocated when the app starts, and some more else....why? Do you have any idea? Is there any parameter to set to avoid this big problem? Is the problem depending on 32-bit? Thank you in advance, ciao&lt;BR /&gt;&lt;BR /&gt;Leda</description>
    <pubDate>Fri, 05 Sep 2003 08:46:47 GMT</pubDate>
    <dc:creator>Leda Fonti</dc:creator>
    <dc:date>2003-09-05T08:46:47Z</dc:date>
    <item>
      <title>HP-11i: huge memory requested by a trivial Java app</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-11i-huge-memory-requested-by-a-trivial-java-app/m-p/3064340#M904282</link>
      <description>Hi folk,&lt;BR /&gt;I have a strange behaviour on HP11i machines (32-bit). When I run a very simple Java app (Hello world!), memory size listed by top command jumps immediately to 204MB!! Same Java main on another HP11i (same model and type but 64-bit) required just about 4 MB.... I applied all patches on 32-bit machines; I also had a look at Kernel configuration, but I did not find relevant differences... Furthermore, if I run java with different heap max size (via -Xmx option), memory size increases if I put big max heap size value, and decrease otherwise. If I run java with -classic option, memory size decreases (about one half), but it is still too much.... I tried also to change the JVM (1.3.1_02, 1.3.1_08, 1.3.0xx), but the issue remains... and on 64-bit machines everything works fine with every JVM a tested...  It seems, all the space that could be needed by the app is allocated when the app starts, and some more else....why? Do you have any idea? Is there any parameter to set to avoid this big problem? Is the problem depending on 32-bit? Thank you in advance, ciao&lt;BR /&gt;&lt;BR /&gt;Leda</description>
      <pubDate>Fri, 05 Sep 2003 08:46:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-11i-huge-memory-requested-by-a-trivial-java-app/m-p/3064340#M904282</guid>
      <dc:creator>Leda Fonti</dc:creator>
      <dc:date>2003-09-05T08:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: HP-11i: huge memory requested by a trivial Java app</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-11i-huge-memory-requested-by-a-trivial-java-app/m-p/3064341#M904283</link>
      <description>Leda,&lt;BR /&gt;&lt;BR /&gt;I believe the symptoms you see have nothing to do with different Java and/or OS revisions. It's the top command, that has changed its behaviour.&lt;BR /&gt;&lt;BR /&gt;See also this thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf8dd7a6067d9b24e907826100b9f38c3,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf8dd7a6067d9b24e907826100b9f38c3,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Older top(1) versions only added Text, Data and Stack to get the process' SIZE. Now the complete VSS is printed including shared resources. Compare the what(1) strings of the commands you're using.&lt;BR /&gt;&lt;BR /&gt;Especially Java processes appear to be huge with this approach. The reason for this is, that Java does some some huge mmap()'s using the MAP_NORESERVE option, which means they use lazy swap reservation. No real resources are used though... it's just the way how the VM's internal memory management is designed.&lt;BR /&gt;&lt;BR /&gt;However, the processes _could_ demand more swap while they are running. So it's a good idea, not to be too thrifty  with swap.&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Fri, 05 Sep 2003 10:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-11i-huge-memory-requested-by-a-trivial-java-app/m-p/3064341#M904283</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-09-05T10:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: HP-11i: huge memory requested by a trivial Java app</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-11i-huge-memory-requested-by-a-trivial-java-app/m-p/3064342#M904284</link>
      <description>Dietmar,&lt;BR /&gt;thank you very much! Your answer resolved my problem! I run the ps -o vsz command and everyhting is ok! Actually I already tried to run ps -o command, but it did not work, I discovered on this forum I had to set variable UNIX95=1..!&lt;BR /&gt;&lt;BR /&gt;Thanks again for your precious help, have a good weekend&lt;BR /&gt;&lt;BR /&gt;Leda</description>
      <pubDate>Fri, 05 Sep 2003 16:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-11i-huge-memory-requested-by-a-trivial-java-app/m-p/3064342#M904284</guid>
      <dc:creator>Leda Fonti</dc:creator>
      <dc:date>2003-09-05T16:30:46Z</dc:date>
    </item>
  </channel>
</rss>

