http://www.xmojo.org/products/xmojo/index.html
Highlights of XMOJO
Complete implementation of JMX specification, version 1.0
Multi-management protocol support with RMI and HTTP adaptors
Tested successfully the JMX instrumentation with different application data sources
Servlets, JSPs, EJBs, Java APIs, databases, log files
Tested with different application and integration platforms
WebLogic, WebSphere, JBoss, Oracle9iAS, Tibco Hawk, etc.
Works well with enterprise management systems - CA, Tivoli, BMC, HP etc.
Tested by converting JMX notifications to SNMP traps
Manager tool for testing the developed JMX agents - MBean Browser (RMI client)
Good documentation with illustrative examples & tutorial
一个不错的jmx实现,OpenSource可随便下载,实现jmx 1.0规范,提供了RMI、HTTP适配器。跑了以下他ModelBean的demo,非常简单,提供了现成的批处理文件编译和运行,不用设置任何东西,就可以运行来了。http适配器的效果也不错,比sun提供的那个界面友好多了,而且应该可以订制管理的界面,提供了国际化的资源文件,应该可以方便的做国际化处理。RMI CLIENT使用swing编写的应用程序,界面也非常友好,感觉真是不错,文档也比较详细,只是对ModelMBeanInfo的xml配置文件没有发现tld说明。
看了一下他的ModelBean,竟然可以支持两种方式的创建 ModelMBeanInfo:
Creation of ModelMBeanInfo Object
There are two options to create a ModelMBeanInfo object:
1. Constructing the ModelMBeanInfo using the available API.
2. Writing an XML file and converting this XML file into a ModelMBeanInfo using some utility method.
一种可以使用jmx api 获取ModelMBeanInfo,需要些很多的需要为你管理的对象的属性、方法等写很多的Descriptor。另一种直接写一个xml配置文件完事。
我们可以看到代码:
name = new ObjectName("ModelDomain:name=serverInfo");
ModelMBeanInfo mbeanInfo = null;
if(isMBeanInfoFromXML)
{
System.out.println("MBeanInfo obtained from xml file");
mbeanInfo = Utilities.convertXmlToModelMBeanInfo(
"xml/ServerInfo.xml");
}
else
{
System.out.println("MBeanInfo obtained from the ModelServerInfo class");
mbeanInfo = ModelServerInfo.getMBeanInfo(name, "ServerInfoMBean");
}
这是使用两种方式取得ModelMBeanInfo的代码。
<!--
google_ad_client = "pub-9232855773311077";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_channel ="";
//-->
<iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-9232855773311077&dt=1110449438421&format=336x280_as&output=html&u_h=768&u_w=1024&u_ah=738&u_aw=1024&u_cd=32&u_tz=480&u_his=19&u_java=true" frameborder="0" width="336" scrolling="no" height="280" allowtransparency="65535"></iframe>
分享到:
相关推荐
catalina-jmx-remote.jar,jmxcmd.jar,cmdline-jmxclient-0.10.3.jar这三个jar包打包合集。因为下载网站已经被墙,所以下载下来放在这里供有需要的同学使用
自己做的zabbix监控tomcat的模版,支持3.4版,外带cmdline-jmxclient-0.10.3.jar工具,低积分下载,普及大众
maven编译时报找不到这两个jar文件,发现已经无法从网站下载了,所以自己在网上找到这两个文件下载,分真贵呀,所以现在便宜分享,2个文件只要一分 Could not resolve dependencies for project ****:jar:0.0.1-SNAPSHOT:...
jmxri-1.2.1.jar+jmxtools-1.2.1.jar!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
cmdline-jmxclient-0.10.3.jar和KafkaOffsetMonitor-assembly-0.2.0 .jar
cmdline-jmxclient-0.10.3.jar + zabbix tomcat监控模板
文件中包含jmxtools-1.2.1.jar和jmxri-1.2.1.jar资源jar包
jms-1.1.jar jmxri-1.2.1.jar jmxtools-1.2.1.jar maven仓库缺失的jms、jmxri、jmxtools的jar包合集
mvn仓库里面找不到jmxtools-1.2.1.jar,jmxri-1.2.1.jar的包了,备个份,解压密码123
tomcat-catalina-jmx-remote-9.0.5 tomcat-catalina-jmx-remote-9.0.5.jar
maven本地库缺少jmxri-1.2.1.jar包
jmxtools-1.2.1.jar +jmxri-1.2.1.jar+ jms-1.1.jar 免费分享。
tomcat-catalina-jmx-remote-8.0.21.jar架包,用于jconsole使用时tomcat无法启动报错
很多jmx教程中提到的几个zip jmx-1_2_1-ri.zip jmx_remote-1_0_1_03-ri.zip jmx-1_1-mr-spec.zip
需要的自会需要,介绍没用,亲测可用。 javax.jms包,sun的JMS接口规范包,官方已经不提供了,这里给2分,给大家下载。
创建maven项目时,有时候会找不到jmxri包,网上也不好找,需要的来下载
tomcat性能监控jar包,获取相关数据,结合自动发现脚本,和zabbix监控模板,实现对tomcat性能监控