[ https://issues.apache.org/jira/browse/ARTEMIS-3133?focusedWorklogId=556206&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-556206 ]
ASF GitHub Bot logged work on ARTEMIS-3133: ------------------------------------------- Author: ASF GitHub Bot Created on: 23/Feb/21 07:13 Start Date: 23/Feb/21 07:13 Worklog Time Spent: 10m Work Description: franz1981 edited a comment on pull request #3462: URL: https://github.com/apache/activemq-artemis/pull/3462#issuecomment-783960692 @clebertsuconic I just noticed the reason :+1: thanks I see that we cannot recycle null packets instances that easily because of `sendResponse` that can send responses back on `storageManager.afterCompleteOperations` using a different thread :( I'm preparing something to handle this case as a separate commit ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 556206) Time Spent: 40m (was: 0.5h) > Reduce memory usage for Null an Ping packets > -------------------------------------------- > > Key: ARTEMIS-3133 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3133 > Project: ActiveMQ Artemis > Issue Type: Improvement > Reporter: Francesco Nigro > Assignee: Francesco Nigro > Priority: Major > Time Spent: 40m > Remaining Estimate: 0h > > Currently NullResponseMessage and Ping report a wrong expected size (== > 1500): it means that the allocated Netty buffers will be much bigger then > necessary eg null is 13 bytes, while null v2 is 21. > > In addition, NullReponseMessage could be cached if the transport channel > won't use any resend cache, greatly reducing the memory used under load. -- This message was sent by Atlassian Jira (v8.3.4#803005)