jstat is a console tool to monitor the JVM heap and GC.
See the documentation
I often use 'jstat -gc PID <intervall>'
Reply to this message by going to Community
Start a new discussion in Performance Tuning at Community