Presentation is loading. Please wait.

Presentation is loading. Please wait.

Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character.

Similar presentations


Presentation on theme: "Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character."— Presentation transcript:

1 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

2 Page 2 © 2001 Hewlett-Packard Company Xverbosegc Understanding the Output By Generating Graphs

3 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 www.hp.com/java

4 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

5 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 5 Xverbosegc - Output File Open Excel

6 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 6 Xverbosegc - Output File Open Xverbosegc Output File File:Open

7 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 7 Xverbosegc - Output File Open Xverbosegc Output File

8 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 8 Xverbosegc - Output File Open Xverbosegc Output File Select All Files

9 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 9 Xverbosegc - Output File Open Xverbosegc Output File Select Output File

10 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 10 Xverbosegc - Output File Open Xverbosegc File - Format Select “Delimited”

11 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 11 Xverbosegc - Output File Open Xverbosegc File - Format Select “Spaces”

12 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 12 Xverbosegc - Output File Open Xverbosegc File - Format Finish

13 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 13 Xverbosegc - Output File Data Displayed in Columns

14 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

15 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 15 Xverbosegc - Output File Copy Time Column to First Column Copy

16 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

17 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 17 Xverbosegc - Output File Copy Time Column to First Column

18 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 18 Xverbosegc - Output File Select Columns to Graph Right Button over “N”

19 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 19 Xverbosegc - Output File Select Columns to Graph

20 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 20 Xverbosegc - Output File Start Chart Wizard Insert:Chart…

21 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 21 Xverbosegc - Output File Chart Wizard – Select Scatter 1. Select “XY (Scatter)” 2. Next

22 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 22 Xverbosegc - Output File Chart Wizard – Data Ranges Next

23 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 23 Xverbosegc - Output File Chart Wizard – Label Chart + Axes Fill in Title and Axis Labels

24 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 24 Xverbosegc - Output File Chart Wizard – Label Chart + Axes

25 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

26 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 26 Xverbosegc - Output File Chart Wizard – Select Location Finish

27 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 27 Xverbosegc - Output File Graph Completed

28 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

29 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 29 Xverbosegc - Output File Chart Other Metrics

30 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

31 Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 31 Xverbosegc - Output File Save the File as an Excel Workbook Save

32 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


Download ppt "Page 1 © 2001 Hewlett-Packard Company Tools for Measuring System and Application Performance Introduction GlancePlus Introduction Glance Motif Glance Character."

Similar presentations


Ads by Google