【发布时间】:2013-07-12 07:45:04
【问题描述】:
我很好奇 JConsole 和 JMX 如何协同工作。具体来说,我读过这个JConsole Guide,其中提到了
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 工厂,但我很好奇我是否可以通过 TCP 或其他直接机制通过任意语言访问这些项目。另见link discussing rest connector.
【问题讨论】: