Page tree
Skip to end of metadata
Go to start of metadata

Compability and samples

(info) Tested successfully with MoSKito version 2.2.1 and JBoss 7.1.1

sample project: https://github.com/anotheria/moskito-jboss

BuiltinOSProducer

The BuiltinOSProducer that delivers stats like open files and cpu usage doesn't work in JBoss. The reason is that it fails to load the following class at starttime: com.sun.management.UnixOperatingSystemMXBean. 

We don't know a workaround for this now. The BuiltinOSProducer will not update it values on JBoss for now.

  • No labels

2 Comments

  1. I found a workaround for the issue with the BuiltinOSProducer. You must edit the file <JBOSS-HOME>/modules/sun/jdk/main/module.xml and add com/sun/management to the exported paths.
    Looks like this afterwards:

    (...)
    <dependencies>
    <system export="true">
    <paths>
    <path name="com/sun/management"/>
    <path name="com/sun/script/javascript"/>
    (...)

    This way the class can be loaded and the BuiltinOSProducer works as desired.

    Tested with JBoss AS 7.1.1.Final "Brontes" and Moskito 2.4.1.

    Background info: http://code.google.com/p/javamelody/issues/detail?id=133

  2. Thanks, we will check and update