O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

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

Using the new diagnostic commands for the JVM

If you open the bin folder of the Java installation, you can find there quite a few command-line utilities that can be used to diagnose issues and monitor an application deployed with the Java Runtime Environment (JRE). They use different mechanisms to get the data they report. The mechanisms are specific to the Virtual Machine (VM) implementation, operating systems, and release. Typically, only a subset of the tools is applicable to a given issue at a particular time.

In this recipe, we will focus on the new diagnostic commands introduced in Java 9, some of them listed in JEP 228: Add More Diagnostic Commands (the actual command names are slightly different than in JEP). The new diagnostic commands ...

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