Which JVM parameter enables JDWP remote debugging on port 8000?

Study for the AEM DevOps Engineer Test. Improve your skills with multiple choice questions and detailed explanations. Prepare confidently for your certification exam!

Multiple Choice

Which JVM parameter enables JDWP remote debugging on port 8000?

Explanation:
To enable JDWP remote debugging on port 8000, you configure the JVM to use the JDWP agent with socket transport, have the JVM listen as the debug server on that port, and not pause at startup. The correct parameter is -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n. Here, transport=dt_socket selects socket-based debugging, address=8000 sets the port, server=y makes the JVM listen for a debugger to connect, and suspend=n ensures the application continues running immediately after startup. Why the other options don’t fit: using server=n means the JVM won’t listen for a debugger, which defeats remote debugging’s listening role; using port 9000 would place the listener on the wrong port; using suspend=y would pause the JVM at startup waiting for a debugger to attach, which isn’t required if you want it to run immediately.

To enable JDWP remote debugging on port 8000, you configure the JVM to use the JDWP agent with socket transport, have the JVM listen as the debug server on that port, and not pause at startup. The correct parameter is -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n. Here, transport=dt_socket selects socket-based debugging, address=8000 sets the port, server=y makes the JVM listen for a debugger to connect, and suspend=n ensures the application continues running immediately after startup.

Why the other options don’t fit: using server=n means the JVM won’t listen for a debugger, which defeats remote debugging’s listening role; using port 9000 would place the listener on the wrong port; using suspend=y would pause the JVM at startup waiting for a debugger to attach, which isn’t required if you want it to run immediately.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy