Migrating Java Applications to HP-UX

Migrating Java Applications to HP-UX
August 2010
Technical white paper
Table of Contents
Introduction ...................................................................................................................................3
Essential Tools on HP-UX for Java Applications..................................................................................... 3
HPjconfig...................................................................................................................................3
Java Out-of-Box (JavaOOB)...........................................................................................................4
HPjmeter.................................................................................................................................... 4
Collecting Profile Data for HPjmeter ............................................................................................5
Collecting Garbage Collection Data for HPjmeter.......................................................................... 7
GlancePlus (glance or gpm) .......................................................................................................... 8
gpm (GUI mode)...................................................................................................................... 9
Glance Screen Mode .............................................................................................................10
Glance Adviser Mode ............................................................................................................ 10
Other Tools .............................................................................................................................. 11
Configuring Patches and Kernel Parameters for Java on HP-UX ............................................................ 11
Running HPjconfig in GUI mode (default)...................................................................................... 12
Running HPjconfig in non-GUI mode............................................................................................. 14
Key Factors Affecting Performance................................................................................................... 14
Java Heap Size and Garbage Collection Behavior..........................................................................15
Garbage Collection in HP's Hotspot JVM ................................................................................... 15
JVM Heap and GC Parameters ................................................................................................ 16
Default GC Policies and Heap Settings on HP-UX ........................................................................ 17
Migrating from Solaris............................................................................................................ 17
Migrating from IBM/AIX ......................................................................................................... 18
Confirm Garbage Collection Behavior using HPjmeter.................................................................. 19
Thread Behavior and Lock Contention........................................................................................... 24
Detecting Lock Contention in Your Application............................................................................ 24
Reducing Lock Contention in Your Application ............................................................................ 28
Deployment of Java Instances and Processor Usage......................................................................... 30
Other Factors ...........................................................................................................................35
OS Scheduler........................................................................................................................ 35
Hyper-threading .................................................................................................................... 35
Other Java Options................................................................................................................ 35
System Components............................................................................................................... 36
Memory Footprint of Migrated Java Application................................................................................. 36
Java Process Memory Footprint.................................................................................................... 36
Tools to Examine Java Process Memory Footprint ............................................................................ 37
Threads in the Java Process.........................................................................................................38
Reducing Starting Footprint .........................................................................................................38
For More Information..................................................................................................................... 40
Call to Action............................................................................................................................... 40

Summary of content (40 pages)