How do I make a heapdump at a breakpoint in eclipse?
My Java program has 2 versions that do the same thing with 2 different methods.
One of these methods runs into a Heap Space Exception but the other doesn't.
I was able to get the heapdump for the one that encountered an error by setting the VM argument -XX:+HeapDumpOnOutOfMemoryError
For the program using the method that doesn't get the error, I want to get a heapdump at a certain breakpoint. How can I do this?

You can always use jvisualvm to connect to the process then right-click and do a Heap Dump.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With