QuestionQ17

Performance Optimization and Troubleshooting

The development team requests that the DevOps engineer configure Java remote debugging on a local AEM instance to debug an AEM application. The DevOps engineer must enable remote debugging on port 8000.

Which JVM parameter should the DevOps engineer add to complete this task?

  • A -Dcom.sun.management.jmxremote.port=8000 -Djava.rmi.server.hostname-localhost
  • B -agentlib:jdwp=transport=dt_socket,address=8000, server=y, suspend=n
  • C -Djava.awt.headless=true -javaagent:local.jar=8000
Explanation

Java remote debugging uses the JDWP agent. transport=dt_socket enables socket-based debugger communication, address=8000 selects port 8000, server=y makes the JVM listen for the debugger, and suspend=n lets AEM start without waiting for a debugger. Adobe documents this exact JVM parameter for AEM remote debugging.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!