Open EugeneChung opened 3 years ago
https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html
byte[] x = new byte[1073741824]
byte[] x = new byte[size]
jcmd
jcmd [PID] GC.heap_dump [PATH]
Reachability
https://d2.naver.com/helloworld/1329 https://mirinae312.github.io/develop/2018/06/04/jvm_gc.html
Reference - Garbage collection in java
https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html
GC Basic
OutOfMemoryError(OOM, OOME)
byte[] x = new byte[1073741824]
,byte[] x = new byte[size]
: JVM이 메모리 확보를 하지 못하면 OOME 발생. 해당 thread에만 국한된 문제로 memory leak이 아님jcmd
: java process listjcmd [PID] GC.heap_dump [PATH]
오브젝트에 대한 레퍼런스 관리는 어떻게 하는가?
Reachability
CheckGenerational GC
Young generation
minor GC 전후
Four GC Algorithms