HP-UX Programmer's Guide for Java 2

Table Of Contents
recommend that you perform sizing tests before deployment with a realistic load, while
monitoring with the -Xverbosegc option and a tool like GlancePlus.
For more on the -Xverbosegc option, see Chapter 2 (page 8).
For more information on GlancePlus, see http://www.openview.hp.com/products/
gplus/.
For more information on performance tuning Java™ on HP-UX, see the Performance
Tuning website.
Expanding heap size in native applications on PA-RISC HP-UX 11.11 and
later releases
If you embed libjvm in a native 32-bit application and wish to use a large Java™ heap,
you need to ensure that enough private data space is enabled. You can expand your
available memory space from 1GB to around 1.7GB on HP-UX 11.11 and later releases
by using HP-UX's EXEC_MAGIC; link your executable with "-N". On HP-UX 11.11, you
may need to install HP-UX patch PHKL_35564 (or its superseded patch) to get a larger
Java™ heap. Releases after 11.11 do not require any patches for this feature. Use the
commands shown below to get the larger Java™ heap.
For Java™ heap greater than 1500MB:
chatr +q3p enable <executable name>
For Java™ heap greater than 2400MB:
chatr +q3p enable +q4p enable <executable name>
Expanding heap size in native applications on Integrity HP-UX 11.23 and
later releases
If you embed libjvm in a native 32-bit application and wish to use a large Java™ heap,
you need to ensure that enough private data space is enabled. You can expand your
available memory space from 1GB to around 1.7GB on HP-UX 11.23 and later releases
by using HP-UX's EXEC_MAGIC; link your executable with "-N".
For Java™ heap greater than 1500MB:
chatr +as mpas <executable name>;
Expanding heap size in HP-UX PA-RISC
NOTE: The numbers provided in this section are approximate and might change from
release to release.
Hotspot supports heaps larger than 3GB on HP-UX PA-RISC. In theory, a process can
have 3.8GB address space. However, the address space available as java heap is smaller
than 3.8GB due to reserved address space for primordial stack, other private segment
Expanding heap size in native applications on PA-RISC HP-UX 11.11 and later releases 67