<?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: Problem starting 3,5Gig Java Process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791967#M391885</link>
    <description>Hi, Matty&lt;BR /&gt;&lt;BR /&gt;A couple of things I forgot to mention, I am running a itanium box, so I think I should use mpas(Mostly Private Address space) that would equal the +q4 options in pa-risc.&lt;BR /&gt;&lt;BR /&gt;The thing is that i am running the java_q4p that already has mpas enabled:&lt;BR /&gt;&lt;BR /&gt;rx3600:/opt/java1.5/bin/IA64N#chatr java_q4p | grep add&lt;BR /&gt;&lt;BR /&gt;         address space model: MPAS&lt;BR /&gt;&lt;BR /&gt;And the other thing I forgot to mention is that I have another 32bit java process running on the server.&lt;BR /&gt;&lt;BR /&gt;                        virtual        physical            swap &lt;BR /&gt;       pid       ppid   pages / bytes   pages / bytes   pages / bytes  command&lt;BR /&gt;      9640          1  919251    3.5g  846693    3.2g  853918    3.3g  java_q4p&lt;BR /&gt;     14440          1  638386    2.4g   57037  222.8m   60295  235.5m  java_q4p&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So I understand that both have to share the 3'8 gigs between them, that makes the case even worse&lt;BR /&gt;</description>
    <pubDate>Wed, 25 May 2011 14:28:21 GMT</pubDate>
    <dc:creator>cartman_2</dc:creator>
    <dc:date>2011-05-25T14:28:21Z</dc:date>
    <item>
      <title>Problem starting 3,5Gig Java Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791965#M391883</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We are getting a Java out of memory error when starting a Java process with 3,5 gigs.&lt;BR /&gt;&lt;BR /&gt;These are the errors in syslog:&lt;BR /&gt;&lt;BR /&gt;May 23 13:48:10 or syslog: Java out of memory messages are marked with pid:21629 in /var/adm/syslog/syslog.log.&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629                 4Kb        4Kb        4Kb    PCT     START/        4Kb                 DEV NO./&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629     TYPE      AVAIL       USED       FREE   USED      LIMIT    RESERVE        PRI      FILE NAME&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629      dev    1048576          0    1048576  0.00%          0          -          1         64 (major)          2 (minor)&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629  reserve          -    1466327   -1466327&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629   memory    4177157    1068791    3108366 25.59%&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629 Dynamic libraries:&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629 /opt/java1.5.11/opt/java1.5/jre/bin/IA64N/java_q4p&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629   text:0x00400000-0x00428130 data:0x00429000-0x0042b308&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629 /usr/lib/hpux32/libpthread.so.1&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629   text:0xf76cc000-0xf7768000 data:0xf76c9000-0xf76cb4e8&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629 /usr/lib/hpux32/libdl.so.1&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629   text:0xf76c5000-0xf76c8d70 data:0xf776d000-0xf776d330&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629 /usr/lib/hpux32/libc.so.1&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629   text:0xf7443000-0xf76c4ec0 data:0xf7431000-0xf7442128&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629 /opt/java1.5.11/opt/java1.5/jre/lib/IA64N/server/libjvm.so&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629   text:0xf5c8f000-0xf7427270 data:0xf5a2f000-0xf5c5ec90&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629 /usr/lib/hpux32/libm.so.1&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629   text:0xf5488000-0xf55d9260 data:0xf5c6c000-0xf5c6cc88&lt;BR /&gt;May 23 13:48:10 or syslog: pid:     21629 /usr/lib/hpux32/librt.so.1&lt;BR /&gt;...................&lt;BR /&gt;&lt;BR /&gt;at the moment we try to run the process swap is looking like:&lt;BR /&gt;&lt;BR /&gt;/var/adm/syslog&amp;gt; swapinfo -atm&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        4096       0    4096    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        2000       0    2000    0%       0       -    2  /dev/vg00/lvswap&lt;BR /&gt;dev        1024       0    1024    0%       0       -    2  /dev/vg00/lvswap2&lt;BR /&gt;dev        3008       0    3008    0%       0       -    1  /dev/vg00/lvswap3&lt;BR /&gt;reserve       -    5377   -5377&lt;BR /&gt;memory    16317    4175   12142   26%&lt;BR /&gt;total     26445    9552   16893   36%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and the kernel max/s:&lt;BR /&gt;/var/adm/syslog&amp;gt; kcusage&lt;BR /&gt;Tunable                 Usage / Setting      &lt;BR /&gt;=============================================&lt;BR /&gt;dbc_max_pct                 9 / 10&lt;BR /&gt;maxdsiz              75329536 / 3863835136&lt;BR /&gt;maxdsiz_64bit        33554432 / 8294967296&lt;BR /&gt;maxfiles_lim              477 / 4096&lt;BR /&gt;maxssiz               1179648 / 134217728&lt;BR /&gt;maxssiz_64bit          524288 / 1073741824&lt;BR /&gt;maxtsiz                520192 / 1073741824&lt;BR /&gt;maxtsiz_64bit       117440512 / 1073741824&lt;BR /&gt;maxuprc                    24 / 4000&lt;BR /&gt;max_thread_proc            84 / 3000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So it doesn't look like we have swap reservation problems, nor hitting kernel max parameters.&lt;BR /&gt;&lt;BR /&gt;I think they are running the app with:&lt;BR /&gt;&lt;BR /&gt;/opt/java1.5.11/opt/java1.5/jre/bin/IA64N/java -server -verbose:gc -XX:+PrintGCDetails -Xms1024m -Xmx3500m   ..etc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could it be a 32bit quadrant problen, and the 64bit flag -d64  is needed ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 25 May 2011 09:45:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791965#M391883</guid>
      <dc:creator>cartman_2</dc:creator>
      <dc:date>2011-05-25T09:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem starting 3,5Gig Java Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791966#M391884</link>
      <description>&amp;gt; Could it be a 32bit quadrant problen, and the 64bit flag -d64 is needed ?&lt;BR /&gt;&lt;BR /&gt;If my understanding is correct, that's what it most likely is.&lt;BR /&gt;&lt;BR /&gt;The only way for a 32-bit program to have enough space for 3500 MB of data would be to run as EXEC_MAGIC with the +q4p chatr flag enabled. This gives you about 3.8 GB of address space for your program code (including all the libraries) and data, total.&lt;BR /&gt;&lt;BR /&gt;The flipside is that you won't be able to use System V shared memory nor memory-mapped files. I'm not certain if the JVM could run in this mode.&lt;BR /&gt;&lt;BR /&gt;I'd definitely recommend using the -d64 flag.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 25 May 2011 13:30:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791966#M391884</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-05-25T13:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem starting 3,5Gig Java Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791967#M391885</link>
      <description>Hi, Matty&lt;BR /&gt;&lt;BR /&gt;A couple of things I forgot to mention, I am running a itanium box, so I think I should use mpas(Mostly Private Address space) that would equal the +q4 options in pa-risc.&lt;BR /&gt;&lt;BR /&gt;The thing is that i am running the java_q4p that already has mpas enabled:&lt;BR /&gt;&lt;BR /&gt;rx3600:/opt/java1.5/bin/IA64N#chatr java_q4p | grep add&lt;BR /&gt;&lt;BR /&gt;         address space model: MPAS&lt;BR /&gt;&lt;BR /&gt;And the other thing I forgot to mention is that I have another 32bit java process running on the server.&lt;BR /&gt;&lt;BR /&gt;                        virtual        physical            swap &lt;BR /&gt;       pid       ppid   pages / bytes   pages / bytes   pages / bytes  command&lt;BR /&gt;      9640          1  919251    3.5g  846693    3.2g  853918    3.3g  java_q4p&lt;BR /&gt;     14440          1  638386    2.4g   57037  222.8m   60295  235.5m  java_q4p&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So I understand that both have to share the 3'8 gigs between them, that makes the case even worse&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2011 14:28:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791967#M391885</guid>
      <dc:creator>cartman_2</dc:creator>
      <dc:date>2011-05-25T14:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem starting 3,5Gig Java Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791968#M391886</link>
      <description>Yes the space is shared for all.&lt;BR /&gt;&lt;BR /&gt;Here you have a great HP doc, that explains the problem quite well&lt;BR /&gt;&lt;BR /&gt;wget &lt;A href="http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02645664/c02645664.pdf" target="_blank"&gt;http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02645664/c02645664.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You also have a trouble shooting doc, not so good, but also gives you and idea:&lt;BR /&gt;&lt;BR /&gt;wget &lt;A href="http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02791255/c02791255.pdf" target="_blank"&gt;http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02791255/c02791255.pdf&lt;/A&gt;</description>
      <pubDate>Thu, 26 May 2011 12:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791968#M391886</guid>
      <dc:creator>likid0</dc:creator>
      <dc:date>2011-05-26T12:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem starting 3.5Gig Java Process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791969#M391887</link>
      <description>&lt;P&gt;&amp;gt;Could it be a 32bit quadrant problem, and the flag -d64 is needed?&lt;BR /&gt;&lt;BR /&gt;Yes as Matti says. By specifying 3500, the java driver will select the most appropriate java executable, for your case, MPAS.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I understand that both have to share the 3.8 gigs between them, that makes the case even worse&lt;BR /&gt;&lt;BR /&gt;No, there is no need to share, each is mostly private.&lt;BR /&gt;&lt;BR /&gt;So unless you have 32 bit JNIs, use -d64.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Daniel: Yes the space is shared for all.&lt;BR /&gt;&lt;BR /&gt;Not for MPAS.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2011 17:05:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-starting-3-5gig-java-process/m-p/4791969#M391887</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-30T17:05:31Z</dc:date>
    </item>
  </channel>
</rss>

