Hello All,
I am trying to run AEM in debug mode. I am using the following command to run.
java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=512M -Xmx1280m -Dorg.apache.sling.commons.log.level=INFO -jar AEM_6.0_Quickstart.jar -p 4502 -verbose -nofork
In eclipse I am doing the following steps:
To start a remote debugging session from Eclipse, do the following:
- Open Eclipse.
- Choose Run > Debug Configurations.
- Right-click Remote Java Applications and select New.
- Select your CQ5 project under Project.
- Type in the port from the "address" configuration of the jvm parameter defined above. In the example, it is port 8000 (and the host name of the machine you are connecting to, most likely localhost)
- To start a debugging session, double-click your new configuration in the Debug Configurations screen after saving it.
When I do this and debug the project, I am getting the following error.
Failed to connect to remote VM. Connection refused.
Connection refused: connect
Can you please help me with this ?