Remote Debugging: Failed to connect to remote VM. Connection timed out | Community
Skip to main content
Level 4
Feb 11, 2020 3:57 AM UTC
Solved

Remote Debugging: Failed to connect to remote VM. Connection timed out

I am trying to debug some java code, but i am getting a connection timed out exception-

Failed to connect to remote VM. Connection timed out.


I have added 
if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303

in start.bat file

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
user05162Accepted solution
Employee
Feb 12, 2020 6:56 PM UTC

You can just add -debug 30303 in the JVM opts to start AEM in debug mode.

 

-debug <port>

         Enable Java Debugging on port number; forces forking 

 

No need for "runjdwp:transport=dt_socket,server=y,suspend=n,address=30303"

2 replies

user05162Accepted solution
Employee
Feb 12, 2020 6:56 PM UTC

You can just add -debug 30303 in the JVM opts to start AEM in debug mode.

 

-debug <port>

         Enable Java Debugging on port number; forces forking 

 

No need for "runjdwp:transport=dt_socket,server=y,suspend=n,address=30303"

Translate
santhosh_kumar6
New Participant
Feb 11, 2020 6:59 AM UTC

Hi @chinmayish, Try changing the port number and map the same port number in eclipse debug configurations. Try launching now in debug mode.

Translate