JBoss 4.2.0 (EAP) 的 JMX 问题?
我在 JBoss 4.2.0 EAP 版本下使远程 JMX 工作时遇到一些问题。我的应用程序中遇到一些 Java OOM 错误,并且正在尝试专门对其进行设置以针对它运行 VisualVM。
JBoss 正在针对 JDK 1.5 运行
我尝试通过在启动时将以下内容添加到我的 JAVA_OPTS 来实现此功能(为了便于阅读,这里使用换行符):
-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
-Djboss.platform.mbeanserver
-Dcom.sun.management.jmxremote.port=6789
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
当我启动 JBoss 时,我在 boot.log 中看到条目,指示端口 6789 上启用了 JMX并且 auth 和 ssl 设置为 false。但是,netstat 没有显示任何在端口 6789 上侦听的内容,并且我无法获得到该端口的 telnet 连接。毫不奇怪,VisualVM 也无法连接(本地和远程运行)。
JBoss 附带的默认 /jmx-console 上下文似乎可以正常加载(如果这很重要的话)。
我在这里缺少什么吗?是后来添加了远程 JMX 支持还是其他什么?
编辑:我忘记提及 JBoss 正在使用 SSL 连接器运行,因此例如我通过 https://localhost:8888/jmx-console。也许这会对 JMX 连接产生影响?
I am having some issues getting remote JMX working under JBoss 4.2.0, EAP version. I am having some Java OOM errors in my application, and am attempting to set this up specifically to run VisualVM against it.
JBoss is running against JDK 1.5
I have attempted to get this working by adding the following to my JAVA_OPTS at startup (with linebreaks here for readability):
-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
-Djboss.platform.mbeanserver
-Dcom.sun.management.jmxremote.port=6789
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
When I start JBoss, I see entries in boot.log indicating the JMX is enabled on port 6789 and that auth and ssl are set to false. However, netstat does not show anything listening on port 6789 and I cannot get a telnet connection to the port. Not surprisingly, VisualVM also fails to connect (running both local and remote).
The default /jmx-console context that ships with JBoss appears to load fine, if that matters.
Is there something I am missing here? Was remote JMX support added at a later time or something?
EDIT: I forgot to mention that JBoss is running with an SSL connector, so for example I access the jmx-console via https://localhost:8888/jmx-console. Maybe this has an effect on the JMX connection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试添加
try adding