Possible Duplicate:
Debug a java application without starting the JVM with debug arguments
For example, can the debug mode be enabled in JVM itself by code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer is no – if the JVM was not started with the debug option you can’t connect to its debug port.
There may be special profiler type JVMs that allow it, but it’s not possible with any of the standard JMVs – for obvious security reasons.