Getting below error when I try to do the remote debug in Spring Tool Suite IDE.
"Failed to connect to remote VM. Connection timed out. org.eclipse.jdi.TimeoutException"
I followed the below steps to enable the remote debugging
- deployed the war file in Tomcat server 8.
- set up the env variable "JAVA_OPTIONS" value (-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8080,server=y,suspend=n)
- start server by the command "CATALINA jpda start"
- once server started
- In IDE, Run --> Debug Configurations --> Remote Java Application, create new application with the same project and host is localhost and port is 8080.
Note: I improved my STS.ini memory to -Xms768m, -Xmx768m but unsuccessful.
not sure why my remote debugging is not working.