Hi Staffan,
I just now saw the presentation slides at
http://www.slideshare.net/stalar/diagnosing-your-application-on-the-jvm.
On Slide 16 of the presentation, you show the details of the "HotSpot Dynamic
Attach Mechanism" for Windows.
1) You talk about Remote process injecting code into the JVM using combination
of VirtualAllocEx and
2) WriteProcessMemory. Further it goes ahead and creates a Remote thread in
the JVM to call above code.
Do you have some sample code which does this, to say, dump the heap ?
I used to develop windows application long ago and just from the slide #16 and
http://openjdk.java.net/groups/hotspot/docs/Serviceability.html#battach, I'm
unable to proceed further.
All help will be useful.
Thank you very much,
BR,
~A