Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character Mode Glance Command-line Xverbosegc HPjmeter and –Xeprof Other Tools
Page 2 © 2001 Hewlett-Packard Company Xverbosegc Understanding the Output By Generating Graphs
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 3 Xverbosegc output Use -Xverbosegc:help for options Analyzes new, old, and perm spaces Prints data with no ASCII explanation Goal: Low intrusion Use awk script to format data For example: -Xverbosegc:file=vbgc.out tail -f vbgc.out | awk -f processVerboseGC122.awk Script available from
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 4 Xverbosegc - Output File Processing Goal: Understand Garbage Collector and Java Heap Usage Graphical view of data is essential Use spreadsheet program to organize data Graph using built-in graph maker Use Excel as an example – Steps to follow: Read Xverbosegc output file Create graphs –Scatter graphs –X axis is time –Y axis is the value of the metric
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 5 Xverbosegc - Output File Open Excel
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 6 Xverbosegc - Output File Open Xverbosegc Output File File:Open
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 7 Xverbosegc - Output File Open Xverbosegc Output File
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 8 Xverbosegc - Output File Open Xverbosegc Output File Select All Files
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 9 Xverbosegc - Output File Open Xverbosegc Output File Select Output File
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 10 Xverbosegc - Output File Open Xverbosegc File - Format Select “Delimited”
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 11 Xverbosegc - Output File Open Xverbosegc File - Format Select “Spaces”
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 12 Xverbosegc - Output File Open Xverbosegc File - Format Finish
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 13 Xverbosegc - Output File Data Displayed in Columns
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 14 Xverbosegc - Output File Copy Time Column to First Column 1. Select “C” 2. Right Button over “C” for Menu
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 15 Xverbosegc - Output File Copy Time Column to First Column Copy
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 16 Xverbosegc - Output File Copy Time Column to First Column 1. Right Button over “A” for Menu 2. Paste
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 17 Xverbosegc - Output File Copy Time Column to First Column
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 18 Xverbosegc - Output File Select Columns to Graph Right Button over “N”
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 19 Xverbosegc - Output File Select Columns to Graph
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 20 Xverbosegc - Output File Start Chart Wizard Insert:Chart…
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 21 Xverbosegc - Output File Chart Wizard – Select Scatter 1. Select “XY (Scatter)” 2. Next
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 22 Xverbosegc - Output File Chart Wizard – Data Ranges Next
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 23 Xverbosegc - Output File Chart Wizard – Label Chart + Axes Fill in Title and Axis Labels
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 24 Xverbosegc - Output File Chart Wizard – Label Chart + Axes
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 25 Xverbosegc - Output File Chart Wizard – Remove Legend 1. Select “Legend” 2. Uncheck “Show” 3. Next
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 26 Xverbosegc - Output File Chart Wizard – Select Location Finish
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 27 Xverbosegc - Output File Graph Completed
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 28 Xverbosegc - Output File Chart Other Metrics Repeat the process outlined selecting: Column A Time application has run Column: B GC Reason F MaxTenuringThreshold G, H, I Before, After, Capacity: Eden J, K, L Before, After, Capacity: Survivor M, N, O Before, After, Capacity: Old P, Q, R Before, After, Capacity: Perm S Time Required for GC
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 29 Xverbosegc - Output File Chart Other Metrics
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 30 Xverbosegc - Output File Type of GC (B) -1:Scavenge (GC of New Generation only) 0-6:Full GC (collection of all spaces in Java Heap) Reason: 0: Call to System.gc 1: Old Generation full 2: Permanent Generation full 3: Train Generation full 4: Old generation expanded on last scavenge 5: Old generation too full to scavenge 6: FullGCAlot
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 31 Xverbosegc - Output File Save the File as an Excel Workbook Save
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 32 Xverbosegc - Output File Summary Plotting the data Is required for successful data analysis Uncovers patterns of poor Java Heap behavior Correctly labeled sets of graphs Permit comparison of heap behavior: –Using different Java Heap options –Under different system loads Allow correlation with output from other tools Fosters an understanding of Java Heap behavior