MBean 简单图形监视器

发布于 2024-08-15 08:09:07 字数 165 浏览 2 评论 0原文

我有一些 JMX Bean 可以在我的应用程序中公开性能信息。我希望有一些工具可以在图表中绘制 MBean 的属性以进行监控(类似于 Windows Perf Mon)。我喜欢 JConsole 和 VisualVM 附带的东西,但我还没有找到一个好的插件来让我选择 MBean 上的属性并监视它。有人有什么想法吗?

I have some JMX Beans that expose performance information in my application. I would like to have some facility to plot an attribute of an MBean in a graph for monitoring (a la Windows Perf Mon). I love the stuff that comes with JConsole and VisualVM, but I have not been able to find a nice plugin that will let me select an attribute on an MBean and monitor it. Anyone have any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

分开我的手 2024-08-22 08:09:07

您可以在 VisualVM 中绘制 JMX 数值,双击数值属性值将显示一个图表,绘制该数值的变化。

例如,双击垃圾收集器 MBean MarksweepCompact 的 CollectionTime 属性将绘制执行垃圾收集所花费的时间。

@参见http://visualvm.java.net/mbeans_tab.html

You can plot JMX numeric values in VisualVM, double-clicking on numeric attribute values will display a chart that plots changes in that numeric value.

For example, double-clicking on the CollectionTime attribute of the Garbage Collector MBean MarksweepCompact will plot the time spent performing garbage collection.

@see http://visualvm.java.net/mbeans_tab.html

冬天旳寂寞 2024-08-22 08:09:07

您可以尝试 JRockit Mission Control。它允许您使用自己的图形、表格甚至是您想要监视的 MBean 属性的刻度盘来自定义用户界面。

替代文本 http://www .oracle.com/technology/products/jrockit/missioncontrol/new_and_noteworthy/3.1.0/images/console/new_dials_look.png

自定义的 ui 存储在工作区目录中,默认情况下位于您的主目录中,但您可以有多个工作区并使用您想要使用的工作区启动任务控制。

jrcm.exe -data c:/application1
jrcm.exe -data c:/application2

You can try JRockit Mission Control. It allows you to customize the user interface with your own graphs, tables and even dials for the MBean attributes you want to monitor.

alt text http://www.oracle.com/technology/products/jrockit/missioncontrol/new_and_noteworthy/3.1.0/images/console/new_dials_look.png

The customized ui is stored in a workspace directory, by default in your home directory, but you can have several workspaces and start up Mission Control with the one you want to use.

jrcm.exe -data c:/application1
jrcm.exe -data c:/application2
寂寞笑我太脆弱 2024-08-22 08:09:07

是的,如果双击数字属性值,jconsole 将自动开始轮询并绘制该属性的实时图表。这正是我正在寻找的,令人兴奋......但是,我想指出这仅适用于具有数值的只读属性。

Yes, if double-clicking on a numeric attribute value, jconsole will automatically start polling and plotting a real-time chart on that attribute. This is exactly what I am looking for, exciting... But, I'd like to point out this only applies to a read-only attribute with a numeric value.

一指流沙 2024-08-22 08:09:07

轮询 JMX 变量相对简单。演示可能更令人痛苦。

对于图表组件,您可能需要查看 JFreeChart。尽管它不是实时图表包,但它实际上对于这些类型的应用程序来说性能相当好。在此处查看一些示例。

Polling the JMX variables is relatively straightforward. The presentation is perhaps more of a pain.

For the charting component, you may want to check out JFreeChart. Although it's not a real-time charting package, it's actually quite performant for these type of applications. Check out some samples here.

冰雪梦之恋 2024-08-22 08:09:07

JRDS 会做你想做的。设置起来有点棘手,但是一旦你弄清楚配置,你就可以让它为你的 JMX 属性创建图表。它在幕后使用 RRD4j(类似于 rrd,但在 java 中),因此它也可以为您保留“汇总”历史数据。

JRDS will do what you want. It is a bit tricky to setup, but once you figure out the configuration, you can have it create graphs for your JMX attributes. It uses RRD4j (like rrd but in java) under the covers so it can keep "rolled up" historical data for you as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文