gm.setGranularityPeriod(monitoringFrequency);
gm.setNotifyHigh(true);
gm.setNotifyLow(true);
gm.setThresholds(thresholdHigh,thresholdLow);
gm.setDifferenceMode(true);
gm.addNotificationListener(new GaugeListener(),null,null);
try {
ObjectName objectNameG = new ObjectName("XFire:name="+serviceName+"GaugeMonitor,"+"type=management");
gm.start();
mbs.registerMBean(gm, objectNameG);