# Cassandra consuming lot of memory

**URL:** <https://community.temporal.io/t/cassandra-consuming-lot-of-memory/2442>\
**Category:** Community Support\
**Tags:** cassandra\
**Created:** [June 22, 2021, 1:07pm UTC](https://community.temporal.io/t/cassandra-consuming-lot-of-memory/2442 "2021-06-22T13:07:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chitresh\_Deshpande](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/chitresh_deshpande/32/550_2.png) [@Chitresh\_Deshpande](https://community.temporal.io/u/Chitresh_Deshpande)\
**Post date:** [June 22, 2021, 1:07pm UTC](https://community.temporal.io/t/cassandra-consuming-lot-of-memory/2442/1 "2021-06-22T13:07:45Z")

</div>

Hi Folks

We are using Cassandra as the database for our Temporal deployment. We’ve noticed that in the last one week since we went live, the Cassandra’s memory has constantly gone up. I understand this is not Temporal specific issue but was wondering if you ever experienced any such behaviour and if there are any Temporal knobs that we can tweak.

We’ve experienced same behaviour with both of the following Cassandra config

1. 4CPU 16GB 3 Node cluster
2. 8CPU 32GB 3 Node cluster

Thanks  
Chitresh

 ![Screen Shot 2021-06-22 at 9.02.55 AM](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/d/ddf3dafb398683baef45e26e2300feabbb1f7c4c.png)

---

<div class="post-metadata">

**Author:** ![Ruchir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ruchir/32/6141_2.png) [@Ruchir](https://community.temporal.io/u/Ruchir)\
**Post date:** [June 22, 2022, 9:52am UTC](https://community.temporal.io/t/cassandra-consuming-lot-of-memory/2442/2 "2022-06-22T09:52:56Z")

</div>

@tihomir @Wenquan_Xing

I have similary query. I have deployed Cassandra on 3 node GKE cluster of 16 cores and 64GB memory each. I have configured Cassandra(3 pods) with max heap size of 16GB.

 ![Screenshot 2022-06-22 at 9.47.36 AM](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/2/25c75c95f8c6090848d14306cea7c850ab488818.png)

As you can see in above screenshot, all the pods are using their max heap memory (16GB \* 3)even when any workflows are not being executed. And we don’t see any GC occuring either.

For our workflow runs(120 ms fixed due to worker execution time):  
30tps: 278.56ms  
50tps: 340.49 ms

But anything more than that, the response time goes in seconds. Hence we were suspecting cassandra to be the bottleneck.

Hence need your suggestion.

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [June 22, 2022, 9:51pm UTC](https://community.temporal.io/t/cassandra-consuming-lot-of-memory/2442/3 "2022-06-22T21:51:41Z")

</div>

Hi @Ruchir would you mind creating a new post for your question (not reuse existing one). Thanks!
