Remote Debugging in eclipse
I have an application running in server A. The dev environment is in server B. I am trying to do remote debugging of app running in server A.
In server A i added following command to service start script
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_s开发者_如何学Pythonocket,address=4554,server=y,suspend=n
And service is running in server A.
When i try to launch remote debugging configuration it gives
Failed to connect to remote VM. Connection refused. Connection refused
port 4554 is free in server A.
What other configuration need to be done for this?
Regards Dheeraj Joshi
Try this.
- Set
suspend=y
, just to make sure you got the JVM line right. This should stop the VM on startup until you connect. - If you're on Unix, bring up the terminal and try
telnet [host] [port]
- this will quickly let you know if there's anything listening to that port on that host. - Make sure the connection properties in Eclipse are set correctly. Note that the port defaults to 8000.
- Use the IP address instead of the host name, to rule out DNS/hostfile problems.
Another way of starting the JVM that I use successfully is:
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y
Check if there is a firewall between and/or on the two servers.
精彩评论