HP-UX Programmer's Guide for Java 2

Table Of Contents
Expanding heap size in HP-UX Integrity
NOTE: The numbers provided in this section are approximate and might change from
release to release.
Hotspot 1.4.2.X/5.0.X/6.0.X running in 32-bit mode supports heaps larger than 3GB on
HP-UX 11.23 and later. In theory, an mpas 32-bit process on HP-UX 11.23 and later can
have 4GB address space. However, the address space available as java heap is smaller
than 4GB due to reserved address space for primordial stack, other private segment in
JVM like permanent generation, code cache and interpreter, and other reserved address
range and alignment.
For Java™ invoked from the command line on HP-UX 11.23, Java™ will automatically
choose an appropriate executable.
This is how Hotspot chooses the executable for SDK 1.4.2.09, JDK 5.0.01 and older
releases:
For heaps less than 1700MB, the executable is 'java'.
For heaps greater than or equal to 1700MB the executable is 'java_q4p`.
This is how Hotspot chooses the executable for SDK 1.4.2.10, JDK 5.0.02, JDK 6.0.00
and later releases:
For (heaps + max perm + stack limit) less than 1800MB, the executable is 'java'.
For (heaps + max perm + stack limit) greater than or equal to 1800MB the executable
is 'java_q4p`.
NOTE: For releases after SDK 1.4.2.10 and JDK 5.0.02, when using CMS, the estimated
threshold for switching is about 3% less than the values above, assuming default values
are used for NewSize, MaxNewSize, NewRatio, CMSMarkStackSize and
CMSRevisitStackSize.
Heaps mean total size of java heap determined by -Xmx option. max perm is perm
generation size limit determined by -XX:MaxPermSize=... option. stack limit
is primordial stack size limit which is initialized by kernel parameter maxssiz unless
it is changed explicitly by rlimit(2), shell's 'ulimit -s', etc.
You do not need to directly invoke these programs. Just invoke 'java' as usual, and
the appropriate program will be run for you.
Recent IPF JVMs have -Xmpas:on and -Xmpas:off options. If -Xmpas:on was used,
java_q4p is executed regardless of the java heap size. This might be useful when your
java application needs large malloc area or many number of threads.
On PA-RISC system, Q3P and Q4P executables provide larger private data space. On
IPF HP-UX, Mostly Private Address Space (MPAS) executable provides larger private
address space. A Non-MPAS executable has about 1.9GB private address space and
Expanding heap size in HP-UX Integrity 69