How to enable verbose log on JVM Garbage Collection

In order to enable verbose logging on JVM GC, you will need to add the following parameters to the JAVA_OPTIONS:

-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/path/to/file/gc.log