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
-
On the server, navigate to the
config/java.properties
file. -
Edit the
config/java.properties
file. Add any additional arguments to the end of the line that begins withstart-<server>.java-args
. -
Save the file.
-
Run the following command for the new arguments to take effect the next time the server is started:
$ bin/dsjavaproperties