O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the different JDK tools

If we examine the different tools that come with the JDK to monitor Java applications, we see that these tools vary from powerful profiler tools to lightweight specific command-line tools. In this section, we will go through these tools in detail to pick the best-suited tool for whenever we need certain data of our application. As per the Oracle documentation, apart from JConsole utility, all the other tools are experimental in nature, so they should be used keeping this in mind. They may be removed from the JDK in future JDK versions.

These tools can be classified as follows:

  • Monitoring tools: jps, jstat, and jstatd
  • Troubleshooting tools: jinfo, jmap, jhat, jstack, and jsadebugd
  • Profiler tools: JConsole, JVisualVM, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required