如何在 JROCKIT JVM 上激活 JMX 以使用 jconsole 进行访问?
如何在 JROCKIT JVM 上激活 JMX 以使用 jconsole 进行访问?
(如何激活的后续问题我的 JVM 上的 JMX 可以通过 jconsole 进行访问?)
我问的主要原因是,因为如果我尝试使用激活的 JMX 运行 jboss (6.0.0.Final),并且 jboss 无法正确启动,我会收到奇怪的错误。所以可能是jboss的问题。
How to activate JMX on my JROCKIT JVM for access with jconsole?
(somewhat a follow up question to How to activate JMX on my JVM for access with jconsole?)
The main reason I ask is, because I get strange errors if I try to run jboss (6.0.0.Final) with activated JMX, and jboss doesn't start correctly. So maybe it is a jboss problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要做到这一点,同时支持各种潜在的网络配置挑战,以及与任何 JVM(大多数?)一起工作,最简单的方法是安装 JMXConnectorServer。现在您正在使用标准 J2SE 连接。
JBoss 6 的较旧版本内置了此支持,我不确定为什么 jboss 删除了它,但以下是重新创建它的方法。
(抱歉,在为 stackoverflow 格式化 XML 时遇到问题)。
当服务器启动时,您会很早就看到这样的日志语句:
INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://10.213.14.95/jndi/rmi://10.213.14.95 :1090/jmxconnector
您可以调整绑定、注册表的使用、端口等,但现在您可以打开 JConsole 并连接到 service:jmx:rmi://10.213.14.95/jndi/ rmi://10.213.14.95:1090/jmxconnector。
您可以在此处<找到有关该服务的更多信息< /a>.
The easiest way to do this, and at the same time support a variety of potential networking configuration challenges, as well as work with any JVM (most ?) is to install a JMXConnectorServer in the JBoss App Server. Now you're using standard J2SE connectivity.
Older builds of JBoss 6 had this support built in and I'm not sure why jboss removed it but here's how you can recreate it.
(Sorry, was having trouble formatting XML for stackoverflow).
When the server starts, you will see a log statement like this, pretty early on:
INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://10.213.14.95/jndi/rmi://10.213.14.95:1090/jmxconnector
You can tweak the bindings, the use of a registry, the ports etc, but now you can open JConsole and connect to service:jmx:rmi://10.213.14.95/jndi/rmi://10.213.14.95:1090/jmxconnector.
You can find more information on the service here.