Issue
I am getting the following message when I try to remote debug a java application through eclipse. "Failed to connect to remote VM. Connection refused." What could be the error?
Solution
You need to invoke the process to be debugged with the appropriate options e.g.
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044
(substitute with the appropriate port if necessary) and it sounds like the VM isn't listening on the configured port. You can use netstat /a
to confirm if the VM is listening on that port (or telnet
)
Answered By - Brian Agnew
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.