/
NoDefClassFoundError OperatingSystemMXBean

NoDefClassFoundError OperatingSystemMXBean

If you encounter an exception like this one you most likely are running a non Oracle/Hotspot JVM and thus the JMX bean that we use to record system sensor information is not available.

java.lang.NoClassDefFoundError: com.sun.management.OperatingSystemMXBean
 at info.novatec.inspectit.agent.sensor.platform.MemoryInformation.<init>(MemoryInformation.java:46)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
 at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
 at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)

From version 1.4 this problem has been fixed and exception should not occur any more. However if you don't run monitored application on the Oracle/Hotspot JVM there is a chance that some information provided by Platform sensors will not be captured.

Support for IBM Java virtual machine (Java version 6+)

from version 1.4

If you run monitored application on the IBM Java virtual machine all information provided by Platform sensors will be successfully collected if the JVM version is Java 6 or higher. Some part of data can not be collected with the IBM JVM in version 5 because of the limitation on the JVM side.

Related content

Platform sensors
Platform sensors
More like this
Platform sensors
Platform sensors
More like this
Platform sensors
Platform sensors
More like this
Platform sensors
Platform sensors
More like this
Platform sensors
Platform sensors
More like this
Detailed sensor information
Detailed sensor information
More like this