mirror of https://github.com/apache/activemq.git
Slight enhancements in logging for AMQ-2158
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@789378 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
753b21047a
commit
7cf47287b8
|
@ -239,7 +239,8 @@ public abstract class Usage<T extends Usage> implements Service {
|
||||||
|
|
||||||
private void fireEvent(final int oldPercentUsage, final int newPercentUsage) {
|
private void fireEvent(final int oldPercentUsage, final int newPercentUsage) {
|
||||||
if (debug) {
|
if (debug) {
|
||||||
LOG.debug("Memory usage change. from: " + oldPercentUsage + ", to: " + newPercentUsage);
|
LOG.debug("Memory usage change from: " + oldPercentUsage + "% of available memory, to: "
|
||||||
|
+ newPercentUsage + "% of available memory");
|
||||||
}
|
}
|
||||||
if (newPercentUsage >= 80) {
|
if (newPercentUsage >= 80) {
|
||||||
LOG.warn("Memory usage is now over 80%!");
|
LOG.warn("Memory usage is now over 80%!");
|
||||||
|
@ -271,7 +272,7 @@ public abstract class Usage<T extends Usage> implements Service {
|
||||||
if (started.get()) {
|
if (started.get()) {
|
||||||
getExecutor().execute(listenerNotifier);
|
getExecutor().execute(listenerNotifier);
|
||||||
} else {
|
} else {
|
||||||
LOG.warn("not notifying usage change to listeners on shutdown");
|
LOG.warn("Not notifying memory usage change to listeners on shutdown");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue