|Dumping a running process [message #4963]
||Wed, 10 September 2008 22:09
| Taras Tielkes
Registered: July 2009
Here's one request:|
When running on Java 6, it's possible to directly obtain memory dumps
from JVM6 processes running on the same host.
This can be quite useful during (local) development, as it saves the
repetitive manual jps/jmap invocations.
I did look at the implementation of the Sun 1.6 jmap tool some time ago,
and remember the relevant code to be relatively straightforward. I don't
remember if the new 1.6 Attach API was used though..
The feature would work like this:
1) Upon invoking the action, MAT lists a number of local candidate JVM
2) When selecting a process and accepting, MAT instructs the target
process to perform a heap dump
3) Upon completion of the dump, MAT could ask the user if the newly
created .hprof dump should be opened immediately.
For even more UI efficiency, MAT could present a checkbox on the dialog
where a process can be selected. When the checkbox is checked, the whole
chain of dumping, indexing and loading would be performed in the
background without any UI intervention (but with a docked progress
indicator or course).
Powered by FUDForum
. Page generated in 0.01953 seconds