mirror of https://github.com/apache/activemq.git
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:
parent
29e3702cfd
commit
3d77a2f90c
|
@ -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..
|
||||
|
|
Loading…
Reference in New Issue