Page stub for Troubleshooting and Diagnostics techniques.
Techniques & Reference
- Capturing a thread dump
- Capturing a heap dump
- Examining a Stacktrace
- Sun Technical Article: Monitoring and Managing Java SE 6 Platform Applications
- Notes on using Using JMX clients
Tools
...
JMX Clients
JDK tools (
...
Experimental)
- jinfo - Prints JVM process info
- jstack - Prints thread stack traces
- jmap - Dumps heap and shows heap status
- jhat - Heap Analyzer Tool
Profilers
Profilers
...
- MAT (Eclipse)
- YourKit Profiler
- JProbe
- VisualVM Docs
Anchor | ||||
---|---|---|---|---|
|
...
Notes on using JMX
...
clients
When running a JMX client (JConsole, VisualVM) on the same machine as the target JVM process it is possible to connect without pre-configuring a JMX port, using the local connector stub. This method relies on being able to create a protected temporary file, accessible only to a user with administrator privileges. Java processes which are accessible via the local connector will automatically appear in the client.
...