Thursday, August 23, 2007

How-to configure your J2EE JMX Monitor using JDK5

How-to configure your J2EE JMX Monitor using JDK5




It's easy to use the new built-in JMX (JSR-160) features in JDK 5.

  • Start your Application server using these parameters:
    • -Dcom.sun.management.jmxremote
      -Dcom.sun.management.jmxremote.port=8999
      -Dcom.sun.management.jmxremote.ssl=false
      -Dcom.sun.management.jmxremote.authenticate=false
  • Download MC4J : http://mc4j.org/
  • Start MC4J and create a new server connexion: service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi

    Et VoilĂ .... you can monitor the performance of your JVM and even add your own MBeans.

0 comments: