Java Troubleshooting Guide for HP-UX Systems

3.2.3 Collecting Stack Trace Information
On PA-RISC systems, a stack trace is printed to stderr when the application aborts. On Integrity
systems, branch and general register contents are printed to stderr when an application aborts.
The stack trace (PA-RISC systems) and register contents (Integrity systems) are not printed to
the hs_err_pid<pid>.log file; therefore, the contents of stderr should be captured into a
file and sent to HP along with the hs_err_pid<pid>.log, core file, and libraries.
3.3 Collecting System Information
Along with HP-UX version information and information about which window manager is being
used, it is also useful to know which patches are installed on the system. This information can
be gathered either with swlist or HPjconfig.
The following example shows the use of the swlist command to retrieve this list:
$ /usr/sbin/swlist
# Initializing...
# Contacting target "mutant"...
#
# Target: mutant:/
#
#
# Bundle(s):
#
B3701AA C.04.50.00 HP GlancePlus/UX Pak For HP-UX 11.23 (s800)
B3901BA C.11.23.03 HP C/ANSI C Developer's Bundle (S800)
B3913DB C.11.23.03 HP aC++ Compiler (S800)
B6848BA 1.4.gm.46.9 Ximian GNOME 1.4 GTK+ Libraries for HP-UX
B8465BA A.02.00.08 HP WBEM Services for HP-UX
B9073BA B.11.23.07.00.00.03 HP-UX iCOD (Instant Capacity)
BUNDLE11i B.11.23.0409.3 Required Patch Bundle for HP-UX 11i v2 (B.11.23), September 2004
Base-VXVM B.04.10.011 Base VERITAS Volume Manager Bundle 4.1 for HP-UX
CDE-ChineseS B.11.23 Simplified Chinese CDE Environment
CDE-ChineseT B.11.23 Traditional Chinese CDE Environment
CDE-English B.11.23.0409 English CDE Environment
CDE-French B.11.23 French CDE Environment
CDE-German B.11.23 German CDE Environment
CDE-Italian B.11.23 Italian CDE Environment
CDE-Japanese B.11.23 Japanese CDE Environment
CDE-Korean B.11.23 Korean CDE Environment
CDE-Spanish B.11.23 Spanish CDE Environment
CDE-Swedish B.11.23 Swedish CDE Environment
...
HPUXBaseAux B.11.23.0512 HP-UX Base OS Auxiliary
HPUXBaseOS B.11.23 HP-UX Base OS
...
Java15JDK 1.5.0.03.00 Java 1.5 JDK for HP-UX
The following example shows the use of HPjconfig to collect this information:
$ java -jar HPjconfig.jar -nogui -patches -listreq -tunables -listreq
Log written to HPjconfig_miriel_20070330_033831.log
List of required patches:
PHKL_35029 ksleep patch, required by Java 5.0 runtime (Integrity & PA-RISC).
List of required tunables:
Name Recommended value
nproc 2048
max_thread_proc 3000
nkthread 6000
maxfiles 2*1024
maxfiles_lim 2*1024
maxdsiz 2063835136
More information about HPjconfig may be found in the HPjconfig section of this manual.
3.4 Collecting Java Environment Information
To perform core file analysis, you need to collect information about some environment variables
and libraries used by the failed application. The following subsections describe how to do this.
3.4.1 Environment Variables
To facilitate troubleshooting, it is important to know the values of the environment variables
that can affect the behavior of Java applications (for example, CLASSPATH). To collect these
62 Getting Help from Hewlett-Packard