add reduced version of patch from: https://issues.apache.org/activemq/browse/AMQ-2158 - warn on exceeding 80% - leave rest at debug level

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@788316 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-06-25 10:50:34 +00:00
parent 29e3702cfd
commit 3d77a2f90c
1 changed files with 4 additions and 1 deletions

View File

@ -240,7 +240,10 @@ public abstract class Usage<T extends Usage> implements Service {
private void fireEvent(final int oldPercentUsage, final int newPercentUsage) {
if (debug) {
LOG.debug("Memory usage change. from: " + oldPercentUsage + ", to: " + newPercentUsage);
}
}
if (newPercentUsage >= 80) {
LOG.warn("Memory usage is now over 80%!");
}
if (started.get()) {
// Switching from being full to not being full..