Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home

HPjmeter: User's Guide
HPjmeter 3.0

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

HP Part Number: 5991-6757

Published: November 2006


Table of Contents

About This Document
Intended Audience
Typographic Conventions
Related Information
Additional HPjmeter Documents
Related Information
Publishing History
HP Encourages Your Comments
1 Introducing HPjmeter 3.0
Features
Concepts
JVM Agent
Node Agent
2 Completing Installation of HPjmeter
Completing the installation
Platform Support and System Requirements
Agent Requirements
Console Requirements
File Locations
Configuring your Application to Use the JVM Agent
Preparing to run Java
JVM Agent Options
Security Awareness
Securing Communication Between the HPjmeter Node Agent and the Console
Securing Communication Between the JVM and the HPjmeter Node Agent
3 Getting Started
Are You Monitoring an Application or Analyzing Collected Data?
Using HPjmeter to Monitor Applications
Configure and Start Your Application
Confirm that the Node Agent is Running
Start the Console
Connect to the Node Agent from the Console
Set Session Preferences
View Monitoring Metrics During Your Open Session
Using HPjmeter to Analyze Profiling Data
Using HPjmeter to Analyze Garbage Collection Data
Monitoring Demonstration Instructions
Memory Leak Application
Thread Deadlock Sample
4 Monitoring Applications
Controlling Data Collection and Display
Setting Data Collection Preferences
Managing Node Agents
Managing Node Agents On HP-UX
Node Agent Access Restrictions
Running Multiple Node Agents
Saving Monitoring Metrics Information
Saving Data from the Console
Naming Monitoring Data Files
Diagnosing Errors When Monitoring Running Applications
Identifying Unexpected CPU Usage by Method
Viewing the Application Load
Checking for Long Garbage Collection Pauses
Checking for Application Paging Problems
Identifying Excessive Calls to System.gc()
Reviewing the Percentage of Time Spent in Garbage Collection
Checking for Proper Heap Sizing
Confirming Java Memory Leaks
Determining the Severity of a Memory Leak
Identifying Excessive Object Allocation
Identifying the Site of Excessive Object Allocation
Identifying Abnormal Thread Termination
Identifying Multiple Short-lived Threads
Identifying Excessive Lock Contention
Identifying Deadlocked Threads
Identifying Excessive Thread Creation
Identifying Excessive Method Compilation
Identifying Too Many Classes Loaded
Using the JMX Viewer
Understanding the JMX Summary View
Understanding the JMX Server View
Using the Functions in the JMX Server View
5 Profiling Applications
Profiling Overview
Tracing
Sampling
Tuning Performance
Preparing a Benchmark
Collecting Profile Data
Profiling with -Xeprof
Profiling with Zero Preparation
Profiling with -agentlib:hprof
Naming Profile Data Files
–Xeprof and –agentlib:hprof Profiling Options and Their Corresponding Metrics
Approaches to Analyzing Performance Data
Looking at the Data from the Bottom Up
Looking at the Data from the Top Down
Looking for Inefficiencies in Memory Usage
Considerations in Interpreting the Data
Inclusive Versus Exclusive Time
Time Units
Finding Summary Information for Saved Data Sets
Adjusting Scope
Comparing Data Files
Scaling Comparison Data
Reading Profiling Histograms
Key to Thread States Reported by -Xeprof
Interpreting the Histogram Presentation
Using Call Graph Trees
Interpreting Call Graph Data
Options for Manipulating the Call Tree Display
Using Heuristics to Find Possible Hot Spots
6 Analyzing Garbage Collection Data
Obtaining Garbage Collection Data
Data Collection with -Xverbosegc
Data Collection with -Xloggc
Naming GC Data Files
–Xverbosegc and –Xloggc Options and Their Corresponding Metrics
Finding Summary Information for Saved Data Sets
Comparing Data Files
Basic Garbage Collection Concepts
Key to Garbage Collection Types Recognized by HPjmeter
Understanding the Summary Presentation of GC Data
Understanding the System Details Captured with GC Data
7 Using the Console
Starting the Console
Starting the Console On HP-UX
Starting the Console On Linux
Starting the Console On Microsoft Windows
Using the Main Window Functions
Data Representation
Icons and Their Meaning
Console Tool Bar Buttons
Console Menu Choices
Console Guide
Status Bar
Setting Monitoring Session Preferences
Specifying Metrics to Collect for Monitoring
Specifying Filters for Monitoring
Enabling Monitoring Alerts
Viewing Monitoring Data in HPjmeter
Using Alerts
Using the Alert Controller
Responding to Alerts
8 Using Visualizer Functions
Visualizer Behavior When Monitoring Behavior or Analyzing Data
Using Monitoring Displays
Monitor Code and/or CPU Activity Menu
Monitor Memory and/or Heap Activity Menu
Viewing Profiling or GC Data in HPjmeter
Using Profile Displays
Menu Choices
Profile Code and/or CPU Activity
Profile Memory and/or Heap Activity
Profile by Threads
Profile by Locks
Using Heuristic Metrics from the Estimate Menu
Using Specialized Garbage Collection Displays
Heap Usage After GC
Duration (Stop the World)
Cumulative Allocation
Creation Rate
User-Defined X-Y Axes
Using Visualizer Tool bars
Common Tool Bar Buttons
Tool Bar Buttons for Manipulating Tabular Data
Tool Bar Buttons for Manipulating Graphical Data
Button Function Details
Change Color Selection for Histogram Display
9 Understanding How HPjmeter Works
Performance Overhead on Running Applications
Application Server Startup Time
Monitoring Overhead
Profiling Overhead and Intrusion
Node Agent Overhead
Console Overhead
Data Sampling Considerations
How Memory Leak Detection Works
Tapping in to Standard Management of the Java Virtual Machine
10 Troubleshooting
Documentation and Support
Identifying Version Numbers
Installation
Console
JVM agent
Node agent
Zero Preparation Profiling
Glossary
Index

List of Figures

3-1 Heap Display Showing Possible Memory Leak Behavior
3-2 Thread Deadlock Example Display
4-1 Example Metric: Percentage of Time Spent in Garbage Collection When Application Behavior is Normal
4-2 Example Metric: Percentage of Time Spent in Garbage Collection When Application Shows Potential Memory Leak
4-3 Example Metric: Method Compilation Count
4-4 Main Console Showing a JMX Server Node in an Open Session
4-5 Appearance of JMX Viewer When First Opened
4-6 JMX Viewer with Summary Memory Tab Selected
4-7 JMX Viewer with Summary Threads Tab Open
4-8 Default View When JMX Viewer is First Toggled to the JMX Server View from Summary View
4-9 Mbean Attribute Tab Open for Display
4-10 Mbean Operations Tab Open for Display
4-11 Mbean Notifications Tab Open for Display
4-12 Mbean Information Tab Open for Display
5-1 Pie Chart Showing Percent Time Spent in Various States for a Given Thread
5-2 Multiple Nodes Exposed in Call Graph Tree Display Showing Visitation Color Coding
6-1 Summary Panel Showing Garbage Collection Statistics
6-2 Summary Panel Showing System Details for a Period of Xverbosegc Data Collection
7-1 The Main Console Window
7-2 Main Pane with Several File Types Loaded and an Open Session
7-3 Console Guide Location and First Screen
7-4 Metric Preferences Window
7-5 Enable or Disable Alerts Window
7-6 Appearance of Alert Notices in the Main Console Pane
7-7 Alert Controller Window
7-8 Example Alert Log
7-9 Abnormal Thread Termination Alert Visualizer
7-10 Memory Leak Locations Visualizer
8-1 The Profiling Data Viewer
8-2 The Garbage Collection Data Viewer
8-3 Monitoring Metric: Java Methods Hotspots with Confidence Interval Graphically Displayed for Each Method
8-4 Monitoring Metric: Thrown Exceptions with Stack Traces
8-5 Monitoring Metric: Heap Monitor
8-6 Monitoring Metric: Garbage Collection
8-7 Monitoring Metric: Percentage of Time Spent in Garbage Collection
8-8 Monitoring Metric: Allocated Object Statistics by Class
8-9 Monitoring Metric: Allocating Method Statistics
8-10 Monitoring Metric: Current Live Heap Objects
8-11 Copying Current Live Heap Objects Data into Buffer
8-12 Monitoring Metric: Thread Histogram
8-13 Monitoring Metric: Lock Contention
8-14 Monitoring Metric: Method Compilation Count
8-15 Monitoring Metric: Loaded Classes
8-16 Percent CPU Utilization for System and Processes
8-17 Threads Histogram with Pie Chart
8-18 Threads Groups Histogram
8-19 GC Metric: Heap Usage After GC
8-20 GC Metric: Duration
8-21 GC Metric: Cumulative Allocation
8-22 GC Metric: Creation Rate
8-23 User-Defined Comparisons of GC Metrics
8-24 Finding an Item
8-25 Using the Pause Clock
8-26 The View Menu Selections in the GC Viewer
8-27 Specialized GC Graph with Area Selected for Finer Resolution
8-28 New Resolution After Selection
8-29 Resolution After Interval Applied to All Metrics
8-30 Using the Color Changer on Histogram Displays
9-1  Early Indicator of Possible Memory Leak Using Garbage Collections Visualizer
9-2 Early Indicator of Possible Memory Leak Using Heap Monitor Display
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2006 Hewlett-Packard Development Company, L.P.