JVM GC日志开启
Gc日志可以输出的文件中,通过设置-Xverbosegclog参数,指定对应文件名,虚拟机会把Gc日志输出到该文件:
-Xverbosegclog:<path to file><filename[,X,Y]>
Prints out information about garbage collections to a file. If the integers X and Y are specified, the output is redirected to X files each containing output from Y GC cycles. 1 楼 jfhgmv 2012-03-06 Hi,美女!
-Xverbosegclog 这个参数是Linux 下的Sun HotSpot JDK 还是其他厂商的?