I am using Java 11 and using G1GC. The application that I am working on is a big data application, and the weird thing that I am noticing is that I am monitoring the application for 24 hours, and there is no major GC. But the size of Old gen is going down again and again periodically, and coincidently it is happening when minor GC is taking a lot of time at the same minute.
I am not able to understand why spikes on minor GC are clearing out data from Old gen.