Reputation: 41
We have a Spring Batch job currently having long running issue in production. On checking GC logs we have found that too many Full GC's occurring frequently. We are using G1GC collector and Java 8 version.
Below are the JVM arguments:
-Xms6g -Xmx20g -XX:NewSize=3g -XX:+UseG1GC -Xloggc:/local/apps/stock.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:-HeapDumpOnOutOfMemoryError
GC log file is analyzed using GCViewer tool, below is the report:
GC Pauses:
Full GC Pauses:
Reproducing the Full GC issue in test environment is not possible, so on the basis of report I am trying to resolve this issue. After going through GC log report and various blogs on G1 collector, I am assuming that below GC tuning is required and need to add/modify below parameters.
Can you suggest if any more parameters need to add and what should be the correct value for these parameters.
Upvotes: 0
Views: 513