Java

Java 9 decorator (time 등) 사용시 주의점

라그나로크·2018년 1월 24일·조회 3,370

1. -Xlog:gc*:time:file=/home/apache-tomcat-8.5.24/logs/gc.log

[0.000s][error][logging] Invalid decorator 'file=/home/apache-tomcat-8.5.24/logs/gc.log'.
Invalid -Xlog option '-Xlog:gc*:time:file=/sw/apache-tomcat-8.5.24/logs/gc.log'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

2. -Xlog:gc*:file=/home/apache-tomcat-8.5.24/logs/gc.log:time

정상 처리된다.

3. 결론

순서를 잘 지킨다.

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.