Skip to content

myllynen/mbean2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MBean2JSON

License: Apache v2

Description

A trivial helper utility to generate JXM MBeans / JSON mapping files to allow creating configuration files for PCP / Parfait.

Example

The tool has been tested with OpenJDK 1.8 running HelloWorld, Tomcat 8.5, and WildFly 10.1. It may or may not work with other components. (With WildFly jboss-cli-client.jar will be needed to use the remote HTTP protocol.)

The example.txt file is the output when run against an OpenJDK 1.8 JVM running a HelloWorld type program. The --compat-only option is currently needed as Parfait does not support all the data types used for JVM JMX metrics (or for other components, like WildFly).

$ javac MBean2JSON.java
$ vi mbean2json.properties
$ java -Dcom.sun.management.jmxremote=true \
       -Dcom.sun.management.jmxremote.authenticate=false \
       -Dcom.sun.management.jmxremote.local.only=true \
       -Dcom.sun.management.jmxremote.port=9875 \
       -Dcom.sun.management.jmxremote.ssl=false \
       HelloWorld &
$ java MBean2JSON --compat-only > example.txt

Future Directions

None; the tool should be either merged into Parfait or Parfait should provide similar functionality out of the box.

Please refer to PCP/Parfait pages for more information and latest status updates.

License

Apache v2

About

MBean2JSON utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages