Home:ALL Converter>Java remote debugging connection refused

Java remote debugging connection refused

Ask Time:2021-09-22T04:42:06         Author:Stephen Reed

Json Formatter

I get connection refused when remotely debugging a Java application that executes on a different server. The JVM is version 16, and the OS is Ubuntu 21.04. I chose 8999 as an unused port on the server. Not much help from Oracle documentation on runjdwp.

The command line options are ...

-Xdebug \
-Xrunjdwp:transport=dt_socket,address=8999,server=y,suspend=y \

Author:Stephen Reed,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69275323/java-remote-debugging-connection-refused