} catch (InterruptedException e) {
logger.debug("JMXNotificationHandler breaking out of main loop");
break;
}
if (notification.getType().equals(MemoryNotificationInfo.MEMORY_THRESHOLD_EXCEEDED)) {
CalculableMemory calculableMemory = createCalculableMemory();
/* We may have a reading that lags behind the notification memory threshold notification.
* Force the value to be greater than the high threshold */
if(calculableMemory.getValue()<=getThresholdValues().getCurrentHighThreshold()) {
logger.info("JMX MEMORY_THRESHOLD_EXCEEDED, adjusting CalculableMemory value " +
"from [{}] to [{}] to enforce SLA actions to occur.",
calculableMemory.getValue(),
(getThresholdValues().getCurrentHighThreshold()+0.01));
calculableMemory.setValue(getThresholdValues().getCurrentHighThreshold()+0.01);
}
addWatchRecord(createCalculableMemory());
}
}
}