NetBeans 中的collectd 插件
我正在尝试在 NetBeans 6.9 中安装 GenericJMX 插件。我是新手,我根本不明白如何继续下去。这似乎是一个太笼统的问题,但有人可以告诉我如何解决这个问题吗?
多谢!
I'm trying to install the GenericJMX Plugin in NetBeans 6.9. I'm a newbie and I simply can't understand how to proceed with it. This may seem too generic a question but can someone please tell me how to go about it?
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该插件专门用于 collectd 守护进程。它不能在 NetBeans IDE 中使用。
如果您想监视正在运行的 JVM 实例,请查看 JConsole特别是 JMX 一般情况。
还有一个用于 NetBeans 的 JMX 和 JConsole 插件,可帮助您构建管理进入您的应用程序等,但如果您只想监视正在运行的应用程序,请查看上面的 JConsole 链接。
编辑:
collectd-java 插件是collectd 守护进程的插件。它将 JVM 嵌入到collectd 中并提供对collectd API 的访问。有关详细信息,请参阅 collectd-java 文档。
所以,我对此的理解是collectd有一个名为collectd-java的插件,当启用这个插件时,你可以使用GenericJMX插件来监视所有JVM进程。您还可以使用此插件从应用程序向collectd 守护进程发送消息/统计信息。例如,文档指出:
如果您想要执行与上述类似的操作,则需要在项目中包含 java 绑定,其源代码形式位于 [collectd-src]/bindings/java。如果您只想监视 JVM 实例,在我看来,您可以根据 GenericJMX 插件 页面位于概要标题下。
库 libvirt 插件用于监视虚拟机,例如 Xen hypervisor。虽然 JVM 是一个“虚拟机”,但它与该插件所针对的虚拟机不同。来自 libvirt 的文档:
我没有在 Java 插件中找到任何对 libvirt 插件的引用。
The plugin in question in specifically for the collectd daemon. It cannot be used in the NetBeans IDE.
If you would like to monitor a running JVM instance have a look at JConsole specifically and JMX in general.
There is also a JMX and JConsole Plugin for NetBeans which help you build management into your application, among other things, but If you just want to monitor a running application have a look at the JConsole link above.
Edit:
The collectd-java plugin is a plugin for the collectd daemon. It embeds a JVM into collectd and provides access to collectd's API. See collectd-java documentation for more info.
So, my understanding of this is that collectd has a plugin named collectd-java and when this plugin is enabled you can use the GenericJMX Plugin to monitor all JVM processes. You can also use this plugin to send messages/statistics to the collectd daemon from your applications. For example, the documentation states:
If you would like to do something similar to the above, you will need to include the java bindings in your project which in source form are located [collectd-src]/bindings/java. If you would just like to monitor your JVM instances, it seems to me that you can just configure collectd to do this according to the documentation on the GenericJMX Plugin page under the Synopsis heading.
The library libvirt plugin is for monitoring Virtual Machines such as the Xen hypervisor. While the JVM is a "Virtual Machine" it is not the same as the Virtual Machines that this plugin is targeting. From the documentation for libvirt:
I didn't find any references to the libvirt plugin from the Java plugin.