However, the option was far from complete in the sense of a real "On demand debugging" such as envisioned by
The performance penalty between starting with debugging agent enabled for use with onjcmd vs a fully loaded debugging agent was addressed in the meanwhile through
Also, the onjcmd implementation is lacking functionality to manage the debugging port, e.g. closing it or assigning it a different port number through jcmd etc.
As it stands, there's not much benefit left from the onjcmd facility and we should remove it to reduce technical debt. Maybe some of it will return if "On demand debugging" is ever addressed but then more thought needs to be spent into the whole thing.
- csr for
-
JDK-8341406 Remove the option onjcmd from the jdwp agent
-
- Closed
-
- relates to
-
JDK-8227269 Slow class loading when running with JDWP
-
- Resolved
-
-
JDK-8226608 Hide the onjcmd option from the help output
-
- Closed
-
-
JDK-8226941 Improvements for the Debugging on Demand capabilities
-
- Closed
-
-
JDK-8214892 Delayed starting of debugging via jcmd
-
- Resolved
-
-
JDK-4841257 Should be able to 'attach on demand' to debug
-
- Closed
-
-
JDK-8223065 Add jcmd to get the listen address of the debugger
-
- Closed
-
-
JDK-8223394 Add option to specify the address when starting debugging via jcmd
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/309b9291
-
Review(master) openjdk/jdk/21387