使用 jmx 和 java 5 以编程方式获取堆信息
我知道使用 jconsole 附加到 java 进程来获取内存信息。 具体来说,我正在以编程方式获取有关各种内存池的信息,以便我可以将其绑定到监视应用程序。
谢谢!
I am aware of using jconsole to attach to a java process to get memory information. Specifically I'm after getting information on the various memory pools programatically so I can tie it to a monitoring application.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谢谢 mattk - 我基本上就是这样做的:-)
Thanks mattk - I wound up doing basically this :-)
查看 java.lang.management。 MemoryPoolMXBean 及相关类。
Check out java.lang.management.MemoryPoolMXBean and related classes.