Is there a possibility, that from inside your program, by calling some java library, make java create memory snapshot of that program? (default .hprof file)
+4
A:
You can create a heap dump in your application using the example here.
Jeff Foster
2009-11-11 16:38:55
+2
A:
You can do it via JMX - which means that you have to go out to come back in, so to speak. Details on how to do it via code are available here.
Andrzej Doyle
2009-11-11 16:40:20