You can try one of these.Basic logging:-Xlog:gc*=info:file=/path/to/gc.log:time,uptime,level,tagsDetailed logging:-Xlog:gc*=info,gc+phases=debug:file=/path/to/gc.log:time,uptime,level,tagsComplete debug-level logging:-Xlog:gc*=debug:file=/path/to/gc.log:time,uptime,level,tags