add limit to the log message on temp store full

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1004603 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-10-05 10:26:14 +00:00
parent c94b4075e9
commit 04b2690628
1 changed files with 3 additions and 1 deletions

View File

@ -732,7 +732,9 @@ public class Queue extends BaseDestination implements Task, UsageListener {
waitForSpace(context, systemUsage.getStoreUsage(), getStoreUsageHighWaterMark(), logMessage); waitForSpace(context, systemUsage.getStoreUsage(), getStoreUsageHighWaterMark(), logMessage);
} }
} else if (messages.getSystemUsage() != null && systemUsage.getTempUsage().isFull()) { } else if (messages.getSystemUsage() != null && systemUsage.getTempUsage().isFull()) {
final String logMessage = "Usage Manager Temp Store is Full. Stopping producer (" + message.getProducerId() final String logMessage = "Usage Manager Temp Store is Full ("
+ systemUsage.getTempUsage().getPercentUsage() + "% of " + systemUsage.getTempUsage().getLimit()
+"). Stopping producer (" + message.getProducerId()
+ ") to prevent flooding " + getActiveMQDestination().getQualifiedName() + "." + ") to prevent flooding " + getActiveMQDestination().getQualifiedName() + "."
+ " See http://activemq.apache.org/producer-flow-control.html for more info"; + " See http://activemq.apache.org/producer-flow-control.html for more info";