문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
java:options [2012/12/29 20:49] kwon37xi [GC] |
java:options [2020/08/13 13:44] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Oracle(SUN) JVM Options ====== | ====== Oracle(SUN) JVM Options ====== | ||
+ | * JVM 기본 옵션 출력< | ||
+ | java -XX: | ||
+ | // or | ||
+ | java -XX: | ||
+ | </ | ||
+ | * 메모리 관련 항목은 '' | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
* [[http:// | * [[http:// | ||
* '' | * '' | ||
+ | * [[http:// | ||
+ | * '' | ||
+ | * JIT Compiler option : [[java: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
- | ===== GC ===== | + | ===== -XX: |
- | * [[http://helloworld.naver.com/helloworld/6043|Garbage Collection 모니터링 방법]] | + | * Oracle JVM 에서 예외가 발생하여 로그로 남겼는데, |
- | * [[http:// | + | * [[http://jawspeak.com/2010/ |
- | * GC 상태 보기 | + | * [[http:// |
- | * '' | + | |
- | * '' | + | >> The compiler in the server VM now provides correct stack backtraces for all " |
- | * '' | + | |
- | * '' | + | >> built-in 예외가 반복적으로 발생할 경우 메소드를 다시 컴파일 하여 성능을 높일 수 있다. 재컴파일 이후, 컴파일러는 미리 할당된 예외를 던지는데, |
- | | + | |
- | * '' | + | 원천적이로 이 기능을 끄려면 |
- | | + | |
- | ===== GC Log Rotate - Java 7 ===== | + | 이 경우, |
- | * [[http://weblogs.java.net/ | + | |
- | * '' | + | 재현해보기 |
- | * '' | + | <code java> |
- | * '' | + | public class NpeThief { |
+ | | ||
+ | for (int i = 0; i < 1000000; i++) { | ||
+ | try { | ||
+ | ((Object)null).getClass(); | ||
+ | } catch (Exception e) { | ||
+ | | ||
+ | System.out.println(e.getStackTrace().length); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | public static void main(String ... args) { | ||
+ | NpeThief thief = new NpeThief(); | ||
+ | thief.callManyNPEInLoop(); | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== -XX: | ||
+ | * '' | ||
+ | |||
+ | ===== 참조 | ||
+ | * [[https://www.baeldung.com/jvm-tuning-flags|Exploring | ||
+ | * [[https:// |