PingDirectory

Enabling JVM debugging

About this task

Enable the Java Virtual Machine (JVM) debugging options to track garbage collection data for the system. These options can impact JVM performance, but provide valuable data to tune the server. While the jstat utility with the -gc option can be used to obtain some information about garbage collection activity, there are additional arguments that can be added to provide additional detail, such as:

-XX:+PrintGCDetails
-XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationConcurrentTime
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintGCDateStamps

Steps

  1. On the server, go to the config/java.properties file.

  2. Edit the config/java.properties file. Add any additional arguments to the end of the line that begins with start-<server>.java-args.

  3. Save the file.

  4. Run the following command for the new arguments to take effect the next time the server is started:

    $ bin/dsjavaproperties