[ 
https://issues.apache.org/jira/browse/ARTEMIS-4809?focusedWorklogId=922644&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-922644
 ]

ASF GitHub Bot logged work on ARTEMIS-4809:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Jun/24 19:40
            Start Date: 07/Jun/24 19:40
    Worklog Time Spent: 10m 
      Work Description: joshb1050 opened a new pull request, #4966:
URL: https://github.com/apache/activemq-artemis/pull/4966

   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 `intermediate-message-buffer-initial-size`, 
which defaults to the current value of `8192`. It can be set programmatically 
via
   `QueueConfiguration#setIntermediateMessageBufferInitialSize(int)`.
   
   Note that this must be a power of 2.




Issue Time Tracking
-------------------

            Worklog Id:     (was: 922644)
    Remaining Estimate: 0h
            Time Spent: 10m

> Make intermediateMessageReferences initial capacity configurable
> ----------------------------------------------------------------
>
>                 Key: ARTEMIS-4809
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4809
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: Josh Byster
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.
> It would be quite nice if we could configure this initial size.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@activemq.apache.org
For additional commands, e-mail: issues-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to