When using jcmd
to monitor java process, there is a command ManagementAgent.start
.
Checking man page / oracle document / google, didn't found any description.
The question is:
This command starts remote JMX agent as if -Dcom.sun.management.jmxremote
command-line argument is set. See Monitoring and Management Using JMX Technology.