javaremote-debuggingjdwp

How do check if someone is connected to debug port, or is actively debugging


We have a Tomcat7 Java 11 application on which a few developers work in parallel. This has some debug ports exposed in DEV stability. Sometimes, a user might connect to the debug port and end up forgetting to close the connection, and leaves the connection open, with some active debug points causing the application to pause all processing which involves that flow.

I was wondering if the following options are possible:


Solution

  • If you have app running on Linux