How to connect to JMX agent using python

I am working on custom monitoring system to my server.

the application is developed using python and Django.

The server is running java web applications and I need to monitor the JVM under which the application server is running, so I start the applications with enable the JMX.

Now I need to connect my python application to the JVM JMX agent.

Is there any way to get that?

I have read about the HtmlAdapterServer, that enable managing JMX MBeans from specific url but I do not know how can I use it?

Thanks in advance and best regards


How about using Jython ? http://www.jython.org/


There is a reference implementation of a WebServices based JMXServer you can deploy on your server. Based on the docs, it is possible to use VB Scripting to invoke JMX operations, so I would assume you could use Python too.


Jpype is another option. Start jvm and code java to retrieve glassfish monitoring data. http://jpype.sourceforge.net/

链接地址: http://www.djcxy.com/p/47320.html

上一篇: 用于flex和bison的Emacs模式,还是删除这些模式的自动缩进?

下一篇: 如何使用python连接到JMX代理