The required parameters are as follows:
-XX:+PrintGCTimeStamps -XX:+PrintGCDetails -verbose:gc -Xloggc:gc.log
Gc.log will generate a file in the root directory, which records details of gc.
It can also be monitored by gc jvisualvm tools under jdk bin directory.