You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Page stub for Troubleshooting and Diagnostics techniques.

Techniques

  • Capturing a thread dump
  • Capturing a heap dump
  • Examining a Stacktrace
  • Using JMX clients

Tools

JDK tools

  • JConsole (JMX)
  • VisualVM (JMX)
  • jmap
  • jstack

Profilers

  • VisualVM
  • MAT (Eclipse)
  • YourKit Profiler
  • JProbe

[#usingjmxclients|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.

NB On Windows, this means that the temporary directory must be located on an NTFS formatted disk. See the following link for more details.

JConsole and Remote Management FAQ

From Java 6 a process needn't have the management agent enabled when it starts, as the Attach API permits the management agent to be activated on demand.

  • No labels