是否有可能像 Tomcat Manager 那样通过 JMX 获得可用/总/最大内存?
启用 tomcat 5/6 和 JMX 后,可以获得多少可用内存可用于监控道具?
我从 zapcat 模板修改了 Template_Tomcat ,但没有看到任何可以用 free/total/max memory 标识的参数。有与GC和堆内存相关的参数,但我真的对这个问题感到困惑。
我在这里或谷歌没有找到任何回复,也许我不明白一些必须显而易见的东西:(
非常感谢!
With tomcat 5/6 and JMX enabled, it is possible to get how many free memory is available for monitoring propurses ?
I revised Template_Tomcat from zapcat template, but I didn't see any parameter which could be identified with free/total/max memory . There is parameters related with GC, and heap memory, but I'm really lost with this issue.
I didn't find any reply here or google, maybe I don't understand something which have to be obvious :(
Thank you very much !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我意识到我回答这个问题已经很晚了,但我认为您想从名为 Memory 的 MBean 中获取信息。请参阅Tomcat 监控常见问题解答的此部分。
在 Zabbix 模板配置中,您可以使用以下键设置项目:
如果您使用部署在 Tomcat 中的 ZapCat,您可以看到访问由 ZapCat 生成的 MBeans 列表页面的列表(类似于:
http://localhost:8180/zapcat -1.2/mbeans.jsp
),它列出了可用的 MBean 和属性。请注意,如果您使用的是 JBoss,则可以使用这些值(来自名为 ServerInfo 的 MBean):
但无论如何,您可能希望在受监视的计算机中安装
zabbix-agent
,因此您可以监控CPU、内存等一切。不过,您必须在 Zabbix 中设置另一个主机。希望有帮助!
I realize I am quite late to answer this, but I think you want to get the information from the MBean called Memory. See this section of Tomcat Monitoring FAQ.
In Zabbix template configuration, you set up items with these keys:
If you use ZapCat deployed in Tomcat, you can see the list accessing the MBeans List page generated by ZapCat (something like:
http://localhost:8180/zapcat-1.2/mbeans.jsp
), it lists the available MBeans and attributes.Note that if you were using JBoss instead, you could use these values (from the MBean named ServerInfo):
At any rate though, you may want to install
zabbix-agent
in the machine being monitored, so you can monitor CPU, Memory and everything. You would have to set up another host in Zabbix, though.Hope it helps!