사용자 도구

사이트 도구


java:options

문서의 이전 판입니다!


Oracle(SUN) JVM Options

-XX:-OmitStackTraceInFastThrow

  • Oracle JVM 에서 예외가 발생하여 로그로 남겼는데, 로그에 스택 트레이스가 안 찍히는 현상이 발생할 수 있다. (exception, stacktrace, missing)
The compiler in the server VM now provides correct stack backtraces for all “cold” built-in exceptions. For performance purposes, when such an exception is thrown a few times, the method may be recompiled. After recompilation, the compiler may choose a faster tactic using preallocated exceptions that do not provide a stack trace. To disable completely the use of preallocated exceptions, use this new flag: -XX:-OmitStackTraceInFastThrow.
built-in 예외가 반복적으로 발생할 경우 메소드를 다시 컴파일 하여 성능을 높일 수 있다. 재컴파일 이후, 컴파일러는 미리 할당된 예외를 던지는데, 이 예외에는 stack trace가 없다.

이 경우, 동일 JVM에서 비슷하게 발생한 다른 에러 로그를 찾아보면 과거에 발생했던 에러 로그에서 stacktrace를 찾을 수 있다. 원천적이로 이 기능을 끄려면 -XX:-OmitStackTraceInFastThrow 옵션을 사용한다.

java/options.1502151756.txt.gz · 마지막으로 수정됨: 2017/08/08 08:52 저자 kwon37xi