IntelliJ应用程序问题,指定-Xloggc选项

时间:2018-11-30 19:37:27

标签: java

我指定的选项如下:

-Xloggc:file=/home/abc/one/two/three/four/five/logfile.log:time,uptime,level,tags:filecount=4,filesize=200M --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED

这给了我一个错误:

Invalid file name for use with -Xloggc: Filename can only contain the characters [A-Z][a-z][0-9]-_.%[p|t] but it has been file=/home/aagarwal/sf/deployments/reg22/GlobalServices/logs/gs_0_gc.log:time,uptime,level,tags:filecount=4,filesize=200M
Note %p or %t can only be used once
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Process finished with exit code 1

java帮助给出:

$ java -X
    -Xloggc:<file>    log GC status to a file with time stamps

The -X options are non-standard and subject to change without notice.

问:指定-Xloggc选项的正确格式是什么?

0 个答案:

没有答案