JDI binding for the Serviceability Agent

Jie Yu yujie at fudan.edu.cn
Wed Mar 5 23:19:55 PST 2008


Hi,

I am a student from Fudan University, China. I am working on a project that uses JPDA of JDK6. I want to debug a live java program that is not start with any debug options (e.g. -agentlib:jdwp or -Xdebug). For this reason, I can choose the SAPIDAttachingConnector. But the VirtualMachine object returned by this connector's attach() method is 'read-only', meaning that I cannot modify the state of the live java program. Is there any other options for me? I scan the source tree of openjdk, and find that in hotspot/agent/src/share/classes/sun/jvm/hotspot/livejvm, there are some related source files. What are these files for? Are they related to my problem?

Best regards,

Jie Yu





More information about the serviceability-dev mailing list