我很好奇 JConsole 和 JMX 如何协同工作。具体来说,我已阅读此JConsole 指南,其中提到
jconsole uses a JMXConnector client to connect to the JMXConnectorServer in
the target application. If the application isn't started with the JMX agent
then there isn't a JMXConnectorServer and jconsole doesn't have anything to
connect too. In that case it uses a HotSpotTM VM specific mechanism to start
the JMX agent in the target VM. Once the agent is started then jconsole connects
as normal.
当我启动 jconsole 时,它只需要 JMX 信息的端口和主机名,所以我想知道是否可以通过任意 tcp 连接(以及任何编程语言)访问 MBean,或者 jconsole 是否有什么特别之处还干吗?
我知道如何通过 java 访问 MBean Factory,但我很好奇是否可以通过 TCP 或其他直接机制通过任意语言访问这些项目。另请参阅讨论休息连接器的链接。