ARTEMIS-1628 Limit pool size on artemis journal
This commit is contained in:
parent
42049bf96a
commit
35222485e8
|
@ -49,7 +49,7 @@ ${jdbc}
|
||||||
|
|
||||||
<journal-min-files>2</journal-min-files>
|
<journal-min-files>2</journal-min-files>
|
||||||
|
|
||||||
<journal-pool-files>-1</journal-pool-files>
|
<journal-pool-files>10</journal-pool-files>
|
||||||
|
|
||||||
<journal-file-size>10M</journal-file-size>
|
<journal-file-size>10M</journal-file-size>
|
||||||
${journal-buffer.settings}${ping-config.settings}${connector-config.settings}
|
${journal-buffer.settings}${ping-config.settings}${connector-config.settings}
|
||||||
|
|
|
@ -862,6 +862,9 @@ public class ConfigurationImpl implements Configuration, Serializable {
|
||||||
@Override
|
@Override
|
||||||
public Configuration setJournalPoolFiles(int poolSize) {
|
public Configuration setJournalPoolFiles(int poolSize) {
|
||||||
this.journalPoolFiles = poolSize;
|
this.journalPoolFiles = poolSize;
|
||||||
|
if (!Env.isTestEnv()) {
|
||||||
|
ActiveMQServerLogger.LOGGER.useFixedValueOnJournalPoolFiles();
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1574,6 +1574,10 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
||||||
@Message(id = 222268, value = "Failed to remove a record", format = Message.Format.MESSAGE_FORMAT)
|
@Message(id = 222268, value = "Failed to remove a record", format = Message.Format.MESSAGE_FORMAT)
|
||||||
void failedToRemoveRecord(@Cause Exception e);
|
void failedToRemoveRecord(@Cause Exception e);
|
||||||
|
|
||||||
|
@LogMessage(level = Logger.Level.WARN)
|
||||||
|
@Message(id = 222269, value = "Please use a fixed value for \"journal-pool-files\". Default changed per https://issues.apache.org/jira/browse/ARTEMIS-1628", format = Message.Format.MESSAGE_FORMAT)
|
||||||
|
void useFixedValueOnJournalPoolFiles();
|
||||||
|
|
||||||
@LogMessage(level = Logger.Level.ERROR)
|
@LogMessage(level = Logger.Level.ERROR)
|
||||||
@Message(id = 224000, value = "Failure in initialisation", format = Message.Format.MESSAGE_FORMAT)
|
@Message(id = 224000, value = "Failure in initialisation", format = Message.Format.MESSAGE_FORMAT)
|
||||||
void initializationError(@Cause Throwable e);
|
void initializationError(@Cause Throwable e);
|
||||||
|
|
Loading…
Reference in New Issue