Compability and samples

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

sample project:


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: 

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

  • No labels


  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:

    <system export="true">
    <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:

  2. Thanks, we will check and update