Could not establish debug connection to localhost from Eclipse using AEM tools | Community
Skip to main content
New Participant
October 16, 2015
Solved

Could not establish debug connection to localhost from Eclipse using AEM tools

  • October 16, 2015
  • 6 replies
  • 8548 views

I have started my instance using the following command line

 java -Xms1024m -Xmx2024m -XX:MaxPermSize=256M -jar cq-author-4502.jar -debug 30303 -nofork -gui

If I select "connect to server in runmode " Ithe localhost server in the AEM perspective shows [Synchronized] next to it.

 

However from the AEM perspective when I try "connect to server in debug mode" I get

Could not establish debug connection to localhost : 30303
Failed to connect to remote VM. Connection refused.
Connection refused

My server connection is set as

Port:    4052

Debug Port:    30303

contect path:    /

Username:    admin

password:   admin

servername:    localhost

host name:     localhost

runtime environment:   Adobe Experience Manager

configuration path:     /Servers/localhost-congig

Install:    option "install bundles directly from the filesystem" selected

Publishing: option "never publish automatically" selected.

 

 

Regards

Clive Stewart

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

Ratna_Kumar
New Participant
April 26, 2016
manoj_devapath
New Participant
April 25, 2016

Follow this instructions

https://helpx.adobe.com/experience-manager/kb/CQ5HowToSetupRemoteDebuggingWithEclipse.html

please make sure Step 2: Start a remote debugging session is perfectly done. 

Note: After all configurations is set if debug mode is not triggered please restart aem or stop aem and open start.bat in aem qucikstart bin file.

New Participant
October 16, 2015

java -debug -XX:MaxPermSize=256M -Xnoagent -Xmx1024M -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -jar cq56-author-4502.jar -nofork

New Participant
October 16, 2015

I used the following and command line to start aem and I can connect to the debug server in eclipse

java -Xms1024m -Xmx2024m -agentlib:jdwp=transport=dt_socket,address=30303,server=y,suspend=n -jar cq-author-4502.jar

New Participant
October 16, 2015

Dear Lokesh.

Thank you for the help.

 

regards

Clive