I'm seeing a large amount of young generation garbage collection in my application. This is a scala application running on openJDK 8u212. I did a jstat on the running docker container and it shows that the S0C area has zero size. This would explain why I would be getting so much young GC but I don't know why this is happening.
S0C S1C S0U S1U EC EU OC OU MC MU CCSC CCSU YGC YGCT FGC FGCT GCT
0.0 2048.0 0.0 2048.0 36864.0 31744.0 706560.0 644022.6 93360.0 82013.4 11184.0 9627.5 15299 126.920 0 0.000 126.920
Any ideas on how I can investigate this further? These are my JVM_OPTS.
"-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/mnt/mesos/sandbox/ -Xmx3g -XX:+UseG1GC -XX:+UseStringDeduplication
I couldn't find any JVM opts I can use to control the size of S0C.