# 오류
톰캣 실행경로(/bin)에 setenv.sh 를 생성하고 JVM 옵션을 추가로 부여했다. (아래 CATALINA_OPTS)
톰캣을 실행하니 Unrecognized VM option 'PrintGCDateStamps' 가 발생한다.
[irteam@dev-1784smartcontrol-ncl bin]$ ./catalina.sh run
Using CATALINA_BASE: /home1/irteam/apps/tomcat
Using CATALINA_HOME: /home1/irteam/apps/tomcat
Using CATALINA_TMPDIR: /home1/irteam/apps/tomcat/temp
Using JRE_HOME: /home1/irteam/apps/jdk Using CLASSPATH: /home1/irteam/apps/tomcat/bin/bootstrap.jar:/home1/irteam/apps/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS: -server -Xms2048m -Xmx2048m -XX:+UseG1GC -XX:+UseLargePagesInMetaspace -Djava.awt.headless=true -Dcom.sun.management.jmxremote -XX:+PrintGC -XX:-PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:-PrintTenuringDistribution -XX:+PrintHeapAtGC -javaagent:/home1/irteam/apps/pinpoint/current/pinpoint-bootstrap-2.2.2.jar -Dpinpoint.agentId=dev-1784smartcontrol-ncl -Dpinpoint.applicationName=SMARTOC
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
Unrecognized VM option 'PrintGCDateStamps'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
# 원인
Tomcat 실행하면서 JVM 실행옵션 중 'PrintGCDateStamps' 라는 옵션때문에 에러가 났다.
뭐하는 옵션인지는 사실 잘 모르겠으나, 이를 무시한다는 옵션을 추가해줌으로써 해결했다.
# 해결
Either add the following JVM option to the setenv.sh or setenv.bat file, or convert the GC options to the new Xlog format.
-XX:+IgnoreUnrecognizedVMOptions
※ 참고
confluence.atlassian.com/confkb/unrecognized-jvm-gc-options-when-using-java-11-1002472841.html
'생계유지형 개발자 > Stack Over Flow 한국판' 카테고리의 다른 글
[Spring Boot] Exceeded limit on max bytes to buffer : 262144 (0) | 2021.10.22 |
---|---|
java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags (0) | 2021.04.22 |
[SpringBoot] 스프링부트 실행 시 톰캣 에러 (내/외부 톰캣 사용 문제) (0) | 2021.02.19 |
[NodeJS] Node Sass version 5.0.0 is incompatible with ^4.0.0. (0) | 2021.01.11 |
[NodeJS] Error: Node Sass does not yet support your current environment: (0) | 2021.01.11 |