Study

DisableExplicitGC, ParallelGCThreads,

아도니우스 2014. 8. 1. 20:12
-XX:+DisableExplicitGC 옵션은 System.gc() 메소드를 호출해도 아무 일이 일어나지 않도록 한다.

이 때문에 분산 gc가 제대로 수행되지 않아서 ClassLoader가 gc되지 못하였고, 결국 perm area가 full이 났던 것이다.

-XX:+ParallelGCThreads

If you turn on ParallelGC for your application and do not set –XX:ParallelGCThreads, then the JVM will set number of parallel GC threads based on number of processors (cores) available on a machine where your application is running.

The JVM will create one parallel GC thread per processor (core) for young generation.

-XX:+ParallelRefProcEnabled

Enable parallel reference processing whenever possible