Profiling with -Xeprof......................................................................................................................
61
Profiling with Zero Preparation......................................................................................................
62
Profiling with -agentlib:hprof..........................................................................................................
63
Naming Profile Data Files...............................................................................................................
65
–Xeprof and –agentlib:hprof Profiling Options and Their Corresponding Metrics.............................
Approaches to Analyzing Performance Data.......................................................................................
68
Looking at the Data from the Bottom Up........................................................................................
Looking at the Data from the Top Down........................................................................................
Looking for Inefficiencies in Memory Usage..................................................................................
Considerations in Interpreting the Data...............................................................................................
Inclusive Versus Exclusive Time.....................................................................................................
69
Time Units.......................................................................................................................................
CPU Versus Clock Time.............................................................................................................
Locating Summary Information for Saved Data Sets...........................................................................
Adjusting Scope....................................................................................................................................
70
Comparing Profiling Data Files ...........................................................................................................
71
Scaling Comparison Data.....................................................................................................................
72
Reading Profiling Histograms..............................................................................................................
73
Key to Thread States Reported by ..................................................................................................
Interpreting the Histogram Presentation........................................................................................
74
Using Call Graph Trees.........................................................................................................................
75
Interpreting Call Graph Data..........................................................................................................
Example of Node Color Display................................................................................................
76
Options for Manipulating the Call Tree Display.............................................................................
77
Tree Pruning...............................................................................................................................
Auto-Expanding the Call Tree...................................................................................................
Using Sub-Trees..........................................................................................................................
Searching the Trees.....................................................................................................................
78
Using Heuristics to Locate Possible Hot Spots.....................................................................................
80
Obtaining Garbage Collection Data......................................................................................................
Data Collection with -Xverbosegc...................................................................................................
Collecting Allocation Site Statistics for Viewing in HPjmeter...................................................
83
Collecting Glance Data for Viewing in HPjmeter......................................................................
Collecting GC Data with Zero Preparation.....................................................................................
Data Collection with -Xloggc...........................................................................................................
84
Naming GC Data Files.....................................................................................................................
85
-Xverbosegc and -Xloggc Options and Their Corresponding Metrics.................................................
86
Comparing Garbage Collection Data Files ..........................................................................................
Basic Garbage Collection Concepts......................................................................................................
87
Key to Garbage Collection Types Recognized by HPjmeter...........................................................
Understanding the Summary Presentation of GC Data..................................................................
88
Understanding the System Details Captured with GC Data..........................................................
90
93
Starting the Console..............................................................................................................................
Starting the Console On HP-UX......................................................................................................
Starting the Console On Linux........................................................................................................
Starting the Console On Microsoft Windows..................................................................................
Using the Main Window Functions......................................................................................................
Data Representation........................................................................................................................
94
Icons and Their Meaning.................................................................................................................
95
Node Agent................................................................................................................................
JVM Agent..................................................................................................................................
Table of Contents
5