8b3874d613
In some setups, there could be a few hundred thousand queues that are created due to many consumers that are connecting. However, most of these are empty and stay empty for the entire day since there aren't necessarily messages to be sent. The 8K intermediateMessageReferences instantiates an 64KB buffer (Object[]). This means we have large allocation and live heap that ultimately remains empty for almost the entire day. In this commit, we introduce initial-queue-buffer-size, which defaults to the current value of 8192. It can be set programmatically via QueueConfiguration#setInitialQueueBufferSize(int). Note that this must be a positive power of 2. |
||
---|---|---|
.. | ||
src/main/java/org/apache/activemq | ||
pom.xml |