如何管理 JMX Web 应用程序
我已经在 此 页面上完成了公开 Web 应用程序的 JMX 接口的过程。
我已设法查看 Tomcat JMX 代理上公开的接口,但是当我加载 JConsole 并查找公开的 mbean 接口时,我找不到与公开的属性和操作相关的任何内容。
jconsole 上没有针对 Web 应用程序的特定条目,因此我认为它可能位于 TOMCAT jmx 条目下。它不是。 (请记住,我确实设法在 tomcat jmx 代理页面上看到它)。
如何在本地管理我的 Web 应用程序?为什么 JConsole 不显示?
I've gone through the process on this page to expose the JMX interface of a web application.
I've managed to view the exposed interface on the Tomcat JMX proxy but when I load JConsole and look for the exposed mbean interface I can't find anything related to the attributes and operations exposed.
Thre is no specific entry on jconsole for the web app so I figured it might be under the TOMCAT jmx entry. It's not. (bare in mind, I did manage to see it on the tomcat jmx proxy page).
How can I manage my web application locally? Why is JConsole not showing it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经通过执行一些基本步骤来解决这个问题 -
在单例中,我使用以下命令向 mbean 服务器注册:
ManagementFactory.getPlatformMBeanServer().registerMBean(this, name);
就是这样。 (简而言之)
I've managed to fix this by doing a few basic steps -
In the singleton I registered with the mbean server with this command:
ManagementFactory.getPlatformMBeanServer().registerMBean(this, name);
Thats it. (In a nut shell)