mirror of https://github.com/apache/activemq.git
Additional Fix for https://issues.apache.org/jira/browse/AMQ-3573 - Add check for improperly configured temp store limits
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1239319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b11f1b452d
commit
d403f10722
|
@ -1722,6 +1722,14 @@ public class BrokerService implements Service {
|
|||
" mb, whilst the temporary data directory: " + tmpDirPath +
|
||||
" only has " + dirFreeSpace / (1024 * 1024) + " mb of free space");
|
||||
}
|
||||
|
||||
long maxJournalFileSize = usage.getTempUsage().getStore().getJournalMaxFileLength();
|
||||
if (storeLimit < maxJournalFileSize) {
|
||||
LOG.error("Temporary Store limit is " + storeLimit / (1024 * 1024) +
|
||||
" mb, whilst the max journal file size for the temporary store is: " +
|
||||
maxJournalFileSize / (1024 * 1024) + " mb, " +
|
||||
"the temp store will not accept any data when used.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue