1 / 65

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 gdb. G lance P lus M otif /opt/perf/bin/ gpm. GlancePlus Motif.

ryu
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 • gdb

  2. GlancePlus Motif /opt/perf/bin/gpm

  3. GlancePlus Motif • Open multiple windows to simultaneously view: • Machine’s behavior • Process’s behavior • Thread behavior • We will learn how to use it with Java applications

  4. GlancePlus Motif Main Window – Overview of System

  5. GlancePlus MotifMain Window – Overview of System CPU Memory I/O Network

  6. GlancePlus MotifConfigure Sampling Time

  7. GlancePlus MotifConfigure Sampling Time Configure:Measurement Sample Interval: Minutes: 0 Seconds: 1 Graph Points: 50

  8. Active Button: CPU Graph GlancePlus MotifMain Window – CPU Usage

  9. GlancePlus MotifCPU Graph

  10. GlancePlus MotifCPU Graph CPU Queue Length • CPU Usage Categories: • Real • Negative Nice (-20 to 0) • Nice (greater than 0) • Normal User • System 8 CPUs

  11. GlancePlus MotifCPU Graph – Garbage Collection 1 Thread Active during GC

  12. GlancePlus MotifMain Window - Reports

  13. GlancePlus MotifMain Window - Reports:Process List Reports:Process List

  14. GlancePlus MotifProcess List

  15. GlancePlus MotifProcess List 8 CPU System: 800% Maximum CPU%

  16. GlancePlus MotifProcess List – Arrange Columns

  17. GlancePlus MotifProcess List – Arrange Columns Configure:Arrange Columns

  18. GlancePlus MotifProcess List – Arrange Columns

  19. GlancePlus MotifProcess List – Arrange Columns • Interesting values: • CPU% • User CPU% • System CPU% • Virtual Memory • Res(ident) Memory • Physical I/O • Configure:Choose Metrics: • PROC_THREAD_COUNT

  20. GlancePlus MotifProcess List - Reports

  21. GlancePlus MotifProcess List - Reports Process Resources Process Open Files Process Memory Regions Process System Calls Process Thread List

  22. GlancePlus MotifProcess System Calls

  23. GlancePlus MotifProcess System Calls Sorted on: SysCall Rate

  24. GlancePlus MotifProcess System Calls - Sort Configure:Sort Fields

  25. GlancePlus MotifProcess System Calls - Sort

  26. GlancePlus MotifProcess System Calls - Sort

  27. GlancePlus MotifProcess System Calls System Calls for Idling JVM

  28. GlancePlus MotifProcess List - Reports Process Resources Process Open Files Process Memory Regions Process System Calls Process Thread List

  29. GlancePlus MotifProcess Memory Regions

  30. Total Number of Memory Regions GlancePlus MotifProcess Memory Regions VSS – Virtual Set Size Total Reserved Space RSS – Resident Set Size Space Actively in Use

  31. GlancePlus MotifProcess Memory Regions Data == C Heap Text == Executable Stack == For 1st Thread Other == Java Heap Shared Libraries Thread Stacks

  32. GlancePlus MotifProcess Memory Regions - Sort

  33. GlancePlus MotifProcess Memory Regions - Sort

  34. GlancePlus MotifProcess Memory Regions - Sort Sort on VSS

  35. GlancePlus MotifProcess Memory Regions - Metrics Add Page Size Metrics

  36. GlancePlus MotifProcess Memory Regions - Metrics

  37. GlancePlus MotifProcess Memory Regions - Metrics Select All PROC_REGION_PAGE_COUNT*

  38. GlancePlus MotifProcess Memory Regions - Metrics For Address: Select PROC_REGION_VIRT_ADDRS

  39. GlancePlus MotifProcess Memory Regions – Pages Page Sizes Allocated In Java Heap All: 4 KB Too Many Total!!

  40. GlancePlus MotifProcess Memory Regions – Pages Page Sizes Allocated In Java Heap All: 4 MB Very Few Total!!

  41. GlancePlus MotifProcess List - Reports Process Resources Process Open Files Process Memory Regions Process System Calls Process Thread List

  42. GlancePlus MotifProcess Thread List

  43. Thread Id Total Number of Threads Active Threads JVM Threads GlancePlus MotifProcess Thread List

  44. GlancePlus MotifProcess List - Reports Process Resources Process Open Files Process Memory Regions Process System Calls Process Thread List

  45. GlancePlus MotifProcess Open Files

  46. File Name Total Number of Open Files Sockets – Monitor Bytes Read and Written! GlancePlus MotifProcess Open Files File Type File Offset

  47. GlancePlus MotifMain Window - Reports System Info: System Tables Graph

  48. GlancePlus MotifSystem Tables Graph Process Table File Table Shared Memory Table Semaphore Table File Locks Swap Space

  49. GlancePlus MotifIdentifying Performance Problems • Patterns to recognize • High System CPU time • Often associated with monitor contention • Check by looking at System Calls • High sched_yield, ksleep, kwakeup call rate confirms • Increasing memory usage • Thread stacks • C Heap • Percentage of the Java Heap in active use

  50. Class header header C++ vtable Object method table ptr non-static fields static fields GC maps HotSpot JVMObject Model • Efficient and low overhead

More Related