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 gdb
Page 2 © 2001 Hewlett-Packard Company GlancePlus Introduction
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 3 GlancePlus CPU utilization System time and user time System call rates sched_yield, read, write Memory regions Java Heap and C Heap Page sizes used for each region allocated (mmap) Sizes of thread stacks
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 4 GlancePlus Network activity rates Thread activity Thread ID is “lwp_id” shown in Java stack trace and HPjmeter Sort by CPU usage to see busiest threads Files Total number of files open Socket activity on each socket! System System table usage
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 5 GlancePlus Three modes: GlancePlus Motif Interface – Multiple Windows –/opt/perf/bin/gpm –Simultaneously visual displays of all aspects of performance GlancePlus Character Mode Interface – 1 Window –/opt/perf/bin/glance –One screen at a time GlancePlus Adviser Mode Interface –/opt/perf/bin/glance –adviser_mode –Command line interface
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 6 GlancePlus When to use each mode: GlancePlus Motif Interface – Multiple Windows –Whole system graphical view –Great simultaneous visualization of events GlancePlus Character Mode Interface – 1 Window –Works in any environment (even without X or Motif) GlancePlus Adviser Mode Interface –Command line tool –Great of monitoring applications long term –Easy method to record data as the process runs
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 7 GlancePlus Motif Main Window
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 8 GlancePlus Motif Main Window CPU I/O Memory Network
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 9 GlancePlus Character Mode g – Process List
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 10 GlancePlus Character Mode ? - Commands h - Online Help q - exit (or e) A - Application List g - Process List d - Disk Report P - PRM Group List a - CPU By Processor i - IO By File SystemY - Global System Calls c - CPU Report u - IO By Disk F - Process Open Files m - Memory Report v - IO By Logical Volume M - Process Memory Regions t - System Tables N - NFS Global Activity R - Process Resources w - Swap Space n - NFS By System W - Process Wait States B - Global Waits l - Network By Interface L - Process System Calls Z - Global Threads D - DCE Global G - Process Threads K - DCE Process List I - Thread Resource T - Trans Tracker y - Renice Process J - Thread Wait H - Alarm History s - Select Process S - Select Disk/NFS/Appl/Trans/Thread GlancePlus Control Key Menu ? - Commands Menu b - Page Backward (or -) < - Display Previous Screen ! - Invoke Shell f - Page Forward (or +,space) > - Display Next Logical Scr h - Online Help q - exit (or e ) z - Reset Statistics to Zero p - Print Toggle r - Refresh Screen (or ^L) - Update Current Screen j - Adjust Interval o - Threshold Screen Options
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 11 GlancePlus Character Mode a – CPU By Processor
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 12 GlancePlus in Adviser Mode Command-Line Tool /opt/perf/bin/glance -adviser_only -syntax adviser_commands -j 5 Samples every 5 seconds (you can specify) Uses the commands in adviser_commands file
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 13 GlancePlus in Adviser Mode Sample Output :15:37 (proc name, pid, cpu, negnice cpu, VSS, RSS, thread #, I/O) Swap space utilization: 42% nfile utilization: 6% bin mb 389.7mb bin mb 308.3mb :15:38 (proc name, pid, cpu, negnice cpu, VSS, RSS, thread #, I/O) Swap space utilization: 42% nfile utilization: 6% bin mb 389.7mb bin mb 308.3mb […]
Tools for Measuring Performance © 2001 Hewlett-Packard Company Page 14 GlancePlus More Information –Concepts –Adviser Reference Guide Using the Application Response Measurement (ARM) API with Java –See examples in: /opt/perf/examples/arm