https://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html
This will give better insight into the JVM processes that CDAP runs, as well as make it easier to debug.
The sandbox already has that support with the --debug option.
That's for connecting a debugger from remotely, right? I don't think that's for the JMX agent.
It uses the same mechanism.
Or are you looking at starting a remote jmx server in the JVM process??
Ah, I just checked. You're right. It's already possible with the --debug option.