I am new to heap analysis. We have been using spring boot in our web application. Recently heap usage has become too high. To analyse heap dump with tools like Mat and JProfiler, I am downloading it using actuator as follows:
http://localhost:8080/actuator/heapdump
But each time, I am taking heap dump, heap usage is becoming low. I am suspecting may be GC kicks in all that time. Please rectify if I am wrong. So I am not able to capture the actual scenario. Is there any way to take heap dump without triggering GC ? Or is there anyway like whenever heap usage increases more than say 500 MB, heapdump gets generated.