From 3d77a2f90c1e6da41e394d052ef42064a3b673d0 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Thu, 25 Jun 2009 10:50:34 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/apache/activemq/usage/Usage.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java b/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java index e929bd44dd..f006f16954 100755 --- a/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java +++ b/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java @@ -240,7 +240,10 @@ public abstract class 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..