I am using eclipse, i want to get heap dump after my program finishes its process successfully. My program does not get heap space error or something but still i want to look at heap dump with eclipse memory analyzer. Actually what i want is a heap dump that generated automatically when program finishes succesfully like -XX:+HeapDumpOnOutOfMemoryError
parameter which generates the heap dump when getting out of memory error automatically.
Any advice would be helpful. Thanks.