html5-img
1 / 123

Tools for Measuring System and Application Performance

Tools for Measuring System and Application Performance. Introduction GlancePlus Introduction Glance Motif Glance Character Mode Glance Command-line Xverbosegc HPjmeter and –Xeprof Other Tools. HPjmeter Understanding Your Java Application’s Performance.

kasie
Download Presentation

Tools for Measuring System and Application Performance

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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. HPjmeter Understanding Your Java Application’s Performance

  3. HPjmeterFree and Easy to Use • Analyzes Java application performance • Graphical • Free • Runs on any platform • http://www.hpjmeter.com/

  4. HPjmeterHow To Collect Metrics JVMPI Java 1.2.1-A and compatible Java 1.3.0-C and compatible java.hprof.txt JVMPI+ (HP-UX) Java 1.1.8+ Java 1.2.2.05+ Java 1.3.x HPjmeter java.eprof 1.1 Java 1.1.x java.prof

  5. HPjmeterJVMPI Options Options to use to any JVM: cpu=samples,thread=y,depth=10,cutoff=0,format=a heap=all,cpu=samples,thread=y,depth=10,cutoff=0,format=a monitor=y,cpu=samples,thread=y,depth=10,cutoff=0,format=a A support matrix for the features you need is online and in Help

  6. HPjmeterJVMPI - Xrunhprof hprof usage: -Xrunhprof[:help]|[<option>=<value>, ...] Option Name/Value Description Default --------------------- ----------- ------- heap=dump|sites|all heap profiling all cpu=samples|times|old CPU usage off monitor=y|n monitor contention n format=a|b ascii or binary output a file=<file> write data to file java.hprof(.txt) net=<host>:<port> send data over a socket write to file

  7. HPjmeterJVMPI - Xrunhprof hprof usage: -Xrunhprof[:help]|[<option>=<value>, ...] Option Name and Value Description Default --------------------- ----------- ------- depth=<size> stack trace depth 4 cutoff=<value> output cutoff point 0.0001 lineno=y|n line number in traces? y thread=y|n thread in traces? n doe=y|n dump on exit? y Example: java -Xrunhprof:cpu=samples,file=log.txt,depth=3 FooClass

  8. HPjmeterEnhanced Profiling for HP-UX • Profiling option for HotSpot • -Xeprof:help • Collects CPU time separately per thread • Very low intrusion

  9. HPjmeterHP JVM’s -Xeprof Option Options to use for HP’s JVM: -Xeprof:file=java.$$.eprof Specify the $$ in the script with the java command to include the Process Identifier in the name and ensure files are not overwritten

  10. HPjmeterSPEC JVM 98 Benchmark Low Intrusion! Faster than Classic

  11. HPjmeterElapsed (Wall Clock) and CPU Time • Inclusive and Exclusive times • Methods • Classes • Process • Thread • Call Graph • Tree form • Call hierarchy navigation • Ability to find callers quickly!

  12. HPjmeterObject Creation • Allocated Objects • Residual Objects • Location in code where created • Reference Graph • Tree form • Ability to find referencing objects

  13. HPjmeterHP JVM’s -Xeprof Option Options to use for HP’s JVM: -Xeprof:file=java.$$.eprof Specify the $$ in the script with the java command to include the Process Identifier in the name and ensure files are not overwritten

  14. Help: User’s Guide

  15. How to run HPjmeter

  16. Measure Object Creation

  17. File: Open

  18. Select File to Open

  19. Open

  20. Reading Thread Data

  21. Creating Internal Data Structures

  22. Program Information Elapsed Time Number of Methods Threads

  23. Where’s the Time Going? • CPU bound application • Find method consuming highest amount of time • Find location in call chain

  24. Metrics

  25. Exclusive Method Time (CPU)

  26. Sorted in Decreasing Order

  27. Select Highest

  28. Mark Selected Item to Find

  29. Switch to Call Tree

  30. Find Selected Item Immediately

  31. Automatic Expansion Double-click for All Callers

  32. Overloaded Methods Distinguish by Parameters

  33. View:Arguments

  34. Arguments Displayed

  35. 1. Select 2. Mark to Find

  36. Find Immediately

  37. Exceptions • Bad programming practice to use as: • Terminators for searches • Indicators of a frequent exception condition • HPjmeter makes them easy to find • Guess:Exceptions Thrown

  38. Guess:Exceptions Thrown

  39. Select Highest

  40. Mark to Find

  41. Switch to: Call Graph Call Count

More Related