This option enables the Diagnostics Collector.
-Xdiagnosticscollector[:settings=<filename>]
Specifying a Diagnostics Collector settings file is optional. By default, the settings file jre/lib/dc.properties is used. See Diagnostics Collector settings for details of the settings available.
If you run a Java™ program from the command line with the Diagnostics Collector enabled, it produces some console output. The Diagnostics Collector runs asynchronously, in a separate process to the one that runs your Java program. The effect is that output appears after the command-line prompt returns from running your program. If this happens, it does not mean that the Diagnostics Collector has hung. Press enter to get the command-line prompt back.