Java/GC
[GC] Java GC Tuning 방법 (자바 메모리 튜닝)
tuning-java
2009. 5. 25. 15:30
GC가 뭔지 잘 모르시는 분들은 제 블로그의 다른 글을 찾아보시거나,
"자바 성능을 결정 짓는 코딩 습관과 튜닝 이야기"를 참조하시길...
자바의 메모리 구조는 다음과 같이 되어 있다.
Code Cache: contains memory used for compilation and storage of native code
Eden Space: pool from which memory is initially allocated for most objects
Survivor Space: pool containing objects that have survived Eden space garbage collection
Tenured Gen: pool containing long-lived objects
Perm Gen: contains reflective data of the JVM itself, including class and memory objects
Perm Gen [shared-ro]: read-only reflective data
Perm Gen [shared-rw]: read-write reflective data
아래는 GC를 어떻게 튜닝하는지에 대한 자세한 설명이 있는 사이트 링크다.
http://java-monitor.com/forum/showthread.php?t=30
이것도 귀찮은 분을 위해서 더 간단한 튜닝 정보
http://developer.amd.com/documentation/articles/pages/4EasyWaystodoJavaGarbageCollectionTuning.aspx
완벽한 GC의 방식과 처리에 대한 자세한 정보를 보려면 아래 링크에 있는 PDF 파일을 참조하는 것도 좋다.
http://www.cecmg.de/doc/tagung_2007/agenda07/24-mai/2b3-peter-johnson/index.html
"자바 성능을 결정 짓는 코딩 습관과 튜닝 이야기"를 참조하시길...
자바의 메모리 구조는 다음과 같이 되어 있다.
아래는 GC를 어떻게 튜닝하는지에 대한 자세한 설명이 있는 사이트 링크다.
http://java-monitor.com/forum/showthread.php?t=30
이것도 귀찮은 분을 위해서 더 간단한 튜닝 정보
http://developer.amd.com/documentation/articles/pages/4EasyWaystodoJavaGarbageCollectionTuning.aspx
완벽한 GC의 방식과 처리에 대한 자세한 정보를 보려면 아래 링크에 있는 PDF 파일을 참조하는 것도 좋다.
http://www.cecmg.de/doc/tagung_2007/agenda07/24-mai/2b3-peter-johnson/index.html
한글로 된 설명을 보고자 하신다면
다시한번 말씀드리지만,
"자바 성능을 결정 짓는 코딩 습관과 튜닝 이야기"를 참조하시길...
지금 생각해보면 이 책에 이 부분에 대한 설명을 좀 약하게 적었다는 생각이 많이 들긴 한다.
다음책에선 자세히 적어놔야지...
추가로 Java 6 GC 튜닝 방법에 대한 Sun의 자료는 아래와 같다.
http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html