ganglia / jmxetric

Java JVM instrumentation to Ganglia
MIT License
76 stars 38 forks source link

delayed mbean initialisation #6

Closed dpocock closed 10 years ago

dpocock commented 11 years ago

Some applications only create the MBeans some time after starting

In these cases, jmxetric is logging warnings early in the startup process because it is trying to find MBeans that don't exist yet. It appears to find the MBeans eventually and start submitting their metrics.

It needs to be more tolerant of these MBeans. The logs should not contain warnings for such MBeans as it may cause undue concern to users.

dpocock commented 10 years ago

The call to getPlatformMBeanServer can now be delayed by using the initialdelay option in the configuration file. The default value of initialdelay is now 20 seconds.