-
jcmd를 사용하는 방법
$ jcmd (PID) VM.flags (PID): -XX:CICompilerCount=2 -XX:InitialHeapSize=16777216 -XX:MaxHeapSize=257949696 -XX:MaxNewSize=85983232 -XX:MinHeapDeltaBytes=196608 -XX:NewSize=5570560 -XX:OldSize=11206656 -XX:+UseCompressedClassPointers -XX:+UseCompressedOops
-XX:Use*GC
라는 플래그가 없다면 SerialGC를 사용합니다. -
jmap을 사용하는 방법
$ jmap -heap (PID)
시도해봤는데 오류가나서 당황했습니다.
https://stackoverflow.com/questions/54862460/how-to-determine-which-gc-i-use