Java Troubleshooting Guide for HP-UX Systems

$ ps -u user1 | grep java
23989 pts/9 8:52 java
Attach gdb to the running process:
$ gdb -p 23989
HP gdb 5.0 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.0 (based on GDB) is covered by the GNU General Public License.
Type "show copying" to see the conditions to change it and/or distribute copies.
Type "show warranty" for warranty/support.
Reading symbols from /opt/java1.4/bin/IA64N/java...
(no debugging symbols found)...done.
Attaching to program: /opt/java1.4/bin/IA64N/java, process 23989
(no debugging symbols found)...
Reading symbols from /usr/lib/hpux32/libpthread.so.1...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/hpux32/libdl.so.1...
...
NOTE: If the version of gdb on the system is older than version 4.5, it is necessary to specify
the full path of the Java executable to use the gdb subcommands. For example:
$ gdb /opt/java1.4/bin/PA_RISC2.0/java p 23989
A tutorial on gdb can be found at the following webpage:
http://www.hp.com/go/wdb
1.6 HPjconfig
HPjconfig is a configuration tool for tuning your HP-UX 11i system to match the characteristics
of your application. It provides kernel parameter recommendations tailored to your HP-UX
hardware platform and application characteristics. HPjconfig has features for saving and
restoring configurations so you can distribute customized recommendations across your customer
base.
HPjconfig can also be used to verify that your HP-UX system has all the necessary patches
required for Java. The HP-UX patches required for Java can be found at the following website:
http://h20361.www2.hp.com/en/HPUXJAVAPATCHES/index.html
HPjconfig is a pure Java Application that runs on the HP-UX SDK or JRE for the Java 2 Platform
version 1.4.2.x, 5.0.x, and 6.0.x. HPjconfig is supported on HP PA-RISC 11i v1 (11.11), 11i v2
(11.23), 11i v3 (11.31), and HP Itanium® 11i v2 (11.23) and 11i v3 (11.31). All HP-UX 11i HP
Integrity Itanium® and HP-9000 PA-RISC systems are supported.
For more information about HPjconfig, including the download, go to:
http://h20392.www2.hp.com/portal/swdepot/
displayProductInfo.do?productNumber=HPJCONFIG
HPjconfig can be run in either graphical user interface (GUI) mode or non-GUI (command-line)
mode. In either mode, it generates a summary of the configuration information in the log file
named HPjconfig_<hostname>_<date>_<timestamp>.log. This log file name can be
specified using the -logfile option.
Following is the usage information for the HPjconfig command:
usage:
HPjconfig [ options ] -gui
HPjconfig [ options ] <object> <action>
objects: -patches &| -tunables
actions: -listreq | -listmis | -listpres | -apply
options:
-patches operate on java-specific patches
-tunables operate on java-specific tunables
-listreq list all java required patches or tunables that are applicable to this system
22 Diagnostic and Monitoring Tools and Options