Java Troubleshooting Guide for HP-UX Systems

1.21 -verbose:gc...............................................................................................................................42
1.22 -verbose:jni.............................................................................................................................42
1.23 visualgc......................................................................................................................................42
1.24 -Xcheck:jni .............................................................................................................................45
1.25 -Xverbosegc...............................................................................................................................46
1.26 -XX:+HeapDump and _JAVA_HEAPDUMP Environment Variable...............................................47
1.26.1 Other HeapDump Options....................................................................................................48
1.26.2 -XX:+HeapDumpOnCtrlBreak ..........................................................................................48
1.26.3 -XX:+HeapDumpOnOutOfMemoryError...........................................................................48
1.26.4 -XX:+HeapDumpOnly..........................................................................................................49
1.26.5 Using Heap Dumps to Monitor Memory Usage...................................................................49
1.27 -XX:ErrorFile...........................................................................................................................49
1.28 -XX:OnError...............................................................................................................................50
1.29 -XX:+ShowMessageBoxOnError..............................................................................................50
1.30 Allocation Site Statistics and Zero Preparation Xverbosegc.........................................................51
2 Useful System Tools for Java Troubleshooting...........................................................55
2.1 GlancePlus.......................................................................................................................................55
2.2 tusc................................................................................................................................................55
2.3 Prospect...........................................................................................................................................55
2.4 HP Caliper.......................................................................................................................................55
2.5 sar...................................................................................................................................................55
2.6 vmstat............................................................................................................................................55
2.7 iostat............................................................................................................................................56
2.8 swapinfo........................................................................................................................................56
2.9 top...................................................................................................................................................56
2.10 netstat........................................................................................................................................56
2.11 Other Tools....................................................................................................................................56
3 Getting Help from Hewlett-Packard............................................................................57
3.1 Problem Report Checklist................................................................................................................57
3.2 Collecting Problem Data.................................................................................................................58
3.2.1 Collecting Core File Information.............................................................................................58
3.2.1.1 Core File Checklist..........................................................................................................58
3.2.1.1.1 Estimate Core File Size............................................................................................58
3.2.1.1.2 Ensure Process Can Write Large Core Files............................................................59
3.2.1.1.3 Verify Amount of Disk Space..................................................................................59
3.2.1.1.4 Check If Directory Supports Large File Systems....................................................59
3.2.1.1.5 Ensure Permissions Allow Core Files.....................................................................60
3.2.1.2 Generating a Core File.....................................................................................................60
3.2.1.3 Verifying a Core File........................................................................................................60
3.2.2 Collecting Fatal Error Log Information...................................................................................61
3.2.3 Collecting Stack Trace Information.........................................................................................62
3.3 Collecting System Information........................................................................................................62
3.4 Collecting Java Environment Information......................................................................................62
3.4.1 Environment Variables............................................................................................................62
3.4.2 Libraries...................................................................................................................................63
3.5 Packaging Files................................................................................................................................64
4 Core File Analysis........................................................................................................65
4.1 Sample Java Application.................................................................................................................65
4.1.1 StackTraceJob.....................................................................................................................65
4 Table of Contents