You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2015/01/22 12:43:09 UTC
[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
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 <ga...@gmail.com>
Authored: Thu Jan 22 11:41:06 2015 +0000
Committer: gtully <ga...@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.");