You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/07/03 10:59:58 UTC

[GitHub] [incubator-doris] WingsGo commented on issue #3966: [Proposal]Optimize the memory consumption of TransactionMgr

WingsGo commented on issue #3966:
URL: https://github.com/apache/incubator-doris/issues/3966#issuecomment-653489222


   I found that most of memory usage in DatabaseTransactionMgr is a HashMap struct idToFinalStatusTransactionState, following shows that 270W TransactionState object almost cost 50G memory, but some data in TransactionState is useless, so we have no need to save the data.
   
   ```
   Label | Number of Objects | Used Heap Size | Retained Heap Size
   -- | -- | -- | --
   java.util.HashMap$NodeFirst 10 of 2,718,787 objects | 2,718,787 | 130,501,776 | 53,717,135,376
   ```
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org