| United States-English |
|
|
|
![]() |
Java™ Troubleshooting Guide for HP-UX Systems: > Chapter 3 Getting Help from Hewlett-PackardCollecting 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. 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 application runtime environment variable values, run the following command under the same environment (that is, the same user) that the Java application was executed:
Include the app_environment.txt file when you send in your collected data files to HP. In order to perform core file analysis, you must have access to libraries used by the failed application. The method used for determining which libraries were used depends on whether or not gdb is available on the system. If gdb is not available, then locate files by either examining the stdout of the failed application or the hs_err_pid<pid>.log file. Either of these should list all the libraries used. Using this list, manually copy the files. If gdb is available on the system where the failure occurred, issue the gdb packcore command:
This command creates a compressed tar file named packcore.tar.Z under the current directory. packcore.tar.Z contains the following:
In some situations, only a core file can be obtained. If so, only limited troubleshooting can take place because some crucial pieces of information are missing There is one additional library that should be collected: libjunwind. This library is used by gdb to unwind Java bytecode frames; its routines help make stack traces more readable and understandable. Because this library is only used during debugging, it is not included in the tar file generated by packcore. The following table lists the location of the libjunwind library for PA-RISC applications: Table 3-1 Libjunwind Library Location for PA-RISC Systems
On Integrity systems, beginning with SDK 1.4.0.10 and JDK 1.5.0.03, there are two libjunwind libraries for each Java VM: libjunwind64.so and libunwind.so. The following table lists the location of these libraries for both 32–bit and 64–bit applications: Table 3-2 Libjunwind Library Location for Integrity Systems
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||