# Memory consumption for tendermint applications

**URL:** <https://forum.cosmos.network/t/memory-consumption-for-tendermint-applications/4087>\
**Category:** Tendermint\
**Created:** [November 2, 2020, 7:51pm UTC](https://forum.cosmos.network/t/memory-consumption-for-tendermint-applications/4087 "2020-11-02T19:51:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kp1990](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/kp1990/32/1405_2.png) [@Kp1990](https://forum.cosmos.network/u/Kp1990)\
**Post date:** [November 2, 2020, 7:51pm UTC](https://forum.cosmos.network/t/memory-consumption-for-tendermint-applications/4087/1 "2020-11-02T19:51:46Z")

</div>

I noticed a our tendermit application ,was showing a constantly incresing graph for the memeory usage .  
Tryi to debug the issue , I though of setting up a sample tendermint application .  
I followed thes steps here  
[https://blog.cosmos.network/writing-a-built-in-tendermint-core-app-in-go-a52f3a35ec09](https://blog.cosmos.network/writing-a-built-in-tendermint-core-app-in-go-a52f3a35ec09)  
The tendermint version I used is 0.33.3  
Golang version is 1.13

I wrote a sample script to send trasactions repeatedly .  
If i track the memory usage I can see it increses when I run the test ( I send about 10000 TX in async) . But the memory is never release after the test is over .

---

<div class="post-metadata">

**Author:** ![Kp1990](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/kp1990/32/1405_2.png) [@Kp1990](https://forum.cosmos.network/u/Kp1990)\
**Post date:** [November 9, 2020, 1:29am UTC](https://forum.cosmos.network/t/memory-consumption-for-tendermint-applications/4087/2 "2020-11-09T01:29:31Z")

</div>

So I even tried running an empty tendermint application . Commented out the DB iniitialization ,and left the blockhain running creating empty blocks . It still shows a meemory increse . Is there something that I am missing completely missing here ?

The pprof from my original application shows that the increase in memeory footprint is due to to loading up the the avl tree at every block , but I am not sure why does the emmory print of the avl tree increase ?

---

<div class="post-metadata">

**Author:** ![ebuchman](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.cosmos.network/ebuchman/32/6645_2.png) [@ebuchman](https://forum.cosmos.network/u/ebuchman)\
**Post date:** [November 19, 2020, 5:25am UTC](https://forum.cosmos.network/t/memory-consumption-for-tendermint-applications/4087/3 "2020-11-19T05:25:21Z")

</div>

Are you using the Cosmos-SDK? Or just the IAVL in a custom application? Would be helpful to get more info. If it’s related to the Cosmos-SDK/IAVL, would be good to open an issue on the repo - [https://github.com/cosmos/cosmos-sdk/issues](https://github.com/cosmos/cosmos-sdk/issues). If it’s more about the Tendermint mempool, you could open an issue on tendermint - [https://github.com/tendermint/tendermint/issues](https://github.com/tendermint/tendermint/issues)

Thanks!
