activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [2/2] activemq git commit: fix AMQ4221Test failure on low disk space - use warn level when resetting to available. Test checked log for error messages
Date Thu, 22 Jan 2015 11:43:09 GMT
fix AMQ4221Test failure on low disk space - use warn level when resetting to available. Test
checked log for error messages


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/189a75af
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/189a75af
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/189a75af

Branch: refs/heads/trunk
Commit: 189a75afdc8862d783591d623286c7939d3ba9d7
Parents: bedb207
Author: gtully <gary.tully@gmail.com>
Authored: Thu Jan 22 11:41:06 2015 +0000
Committer: gtully <gary.tully@gmail.com>
Committed: Thu Jan 22 11:41:06 2015 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/activemq/broker/BrokerService.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/189a75af/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
----------------------------------------------------------------------
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
index 6f28314..b250d32 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
@@ -1979,7 +1979,7 @@ public class BrokerService implements Service {
 
         if (memLimit > jvmLimit) {
             usage.getMemoryUsage().setPercentOfJvmHeap(70);
-            LOG.error("Memory Usage for the Broker (" + memLimit / (1024 * 1024) +
+            LOG.warn("Memory Usage for the Broker (" + memLimit / (1024 * 1024) +
                     " mb) is more than the maximum available for the JVM: " +
                     jvmLimit / (1024 * 1024) + " mb - resetting to 70% of maximum available:
" + (usage.getMemoryUsage().getLimit() / (1024 * 1024)) + " mb");
         }
@@ -2041,7 +2041,7 @@ public class BrokerService implements Service {
             }
             long dirFreeSpace = tmpDir.getUsableSpace();
             if (storeLimit > dirFreeSpace) {
-                LOG.error("Temporary Store limit is " + storeLimit / (1024 * 1024) +
+                LOG.warn("Temporary Store limit is " + storeLimit / (1024 * 1024) +
                         " mb, whilst the temporary data directory: " + tmpDirPath +
                         " only has " + dirFreeSpace / (1024 * 1024) + " mb of usable space
- resetting to maximum available " +
                         dirFreeSpace / (1024 * 1024) + " mb.");


Mime
View raw message