Different Ways to Capture Java Heap Dumps | Baeldung
Learn multiple ways to capture a heap dump in Java