可以这样设置,我在was 7上测试成功 verbosegc.20131224.174826.23712.txtjvm 通用参数加入 -Xverbosegclog:verbosegc.%Y%m%d.%H%M%S.%pid.txt具体参考如下资料:-Xverbosegclog[:[,,]] Causes -verbose:gc output to be written to the specified file. If the file cannot...
显示全部可以这样设置,我在was 7上测试成功 verbosegc.20131224.174826.23712.txt
jvm 通用参数加入 -Xverbosegclog:verbosegc.%Y%m%d.%H%M%S.%pid.txt
具体参考如下资料:
-Xverbosegclog[:
[,,]]
Causes -verbose:gc output to be written to the specified file. If the file cannot be found, -verbose:gc tries to create the file, and then continues as normal if it is successful. If it cannot create the file (for example, if an invalid filename is passed into the command), it redirects the output to stderr.
If you specify and the -verbose:gc output is redirected to X files, each containing Y GC cycles.
The dump agent tokens can be used in the filename. See Dump agent tokens for more information. If you do not specify , verbosegc.%Y%m%d.%H%M%S.%pid.txt is used.收起