-
Notifications
You must be signed in to change notification settings - Fork 1
GC Algorithms Java Versions
Rajendra Prasad Reddy Penumalli edited this page Jun 29, 2020
·
5 revisions
- Latency
- Throughput
- Capacity
- Mark-sweep
- Mark-sweep-compact
- Mark-copy
- We need to explicitly enable G1 GC in Java 8
- Explicitly set G1 GC in Java 8 if heap > 4G , from Java 9 onward its default
- Flag to enable in Java 8:
-XX:+UseG1GC (Enables G1GC algorithm)
- -XX:MaxGCPauseMillis=2000 ( Recommended between 500-2000 ms )
- -XX:+UseStringDeduplication
- After Observing the G1 GC logs one can suggest new parameter that might help in efficient memory utilization.