# Rasa Memory Growing

**URL:** <https://forum.rasa.com/t/rasa-memory-growing/33320>\
**Category:** Rasa Open Source\
**Created:** [September 3, 2020, 2:44am UTC](https://forum.rasa.com/t/rasa-memory-growing/33320 "2020-09-03T02:44:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sum1l0st](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sum1l0st/32/9776_2.png) [@sum1l0st](https://forum.rasa.com/u/sum1l0st)\
**Post date:** [September 3, 2020, 2:44am UTC](https://forum.rasa.com/t/rasa-memory-growing/33320/1 "2020-09-03T02:44:34Z")

</div>

I have launched my Rasa application on AWS EC2 with an external tracker store (i.e. not InMemoryTrackerStore). Here is my `endpoints.yml` file:

```auto
action_endpoint:
 url: "http://app:5055/webhook"

tracker_store:
  type: "dynamo"
  table_name: "my_trackerstore"
  region: "us-west-1"

```

However, I see that my AWS EC2 instance’s memory usage is growing. Eventually, I get the error that there is no space left on device. Is Rasa storing conversations in memory, even though I have configured it to output to DynamoDB? What can I do about this growing memory problem?

Note, I know that it’s writing to my DynamoDB because I can see the entries written there. Additionally, I based my deployment on the following article: [TTT Studios | Making a Lightweight, Low-Cost Rasa Chatbot with NGINX](https://ttt.studio/blog/rasa-chatbot/)

---

<div class="post-metadata">

**Author:** ![sum1l0st](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sum1l0st/32/9776_2.png) [@sum1l0st](https://forum.rasa.com/u/sum1l0st)\
**Post date:** [September 3, 2020, 5:12pm UTC](https://forum.rasa.com/t/rasa-memory-growing/33320/2 "2020-09-03T17:12:26Z")

</div>

Bump ^

---

<div class="post-metadata">

**Author:** ![tyd](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tyd/32/3030_2.png) [@tyd](https://forum.rasa.com/u/tyd)\
**Post date:** [September 4, 2020, 12:26pm UTC](https://forum.rasa.com/t/rasa-memory-growing/33320/3 "2020-09-04T12:26:19Z")

</div>

Hi @sum1l0st. Can you check if the conversations are being stored in the SQLite database? An easy way to do this might be to send a message to the assistant and then run the following commands:

> sqlite3 rasa.db

> SELECT MAX(latest\_event\_time) FROM conversation;

This will return the time of the latest conversation event in epochs, which you can [convert to a human readable timestamp](https://www.epochconverter.com/) and find out if the message you just sent was stored in memory.

---

<div class="post-metadata">

**Author:** ![sum1l0st](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sum1l0st/32/9776_2.png) [@sum1l0st](https://forum.rasa.com/u/sum1l0st)\
**Post date:** [September 8, 2020, 12:47am UTC](https://forum.rasa.com/t/rasa-memory-growing/33320/4 "2020-09-08T00:47:32Z")

</div>

> [@tyd](#):
>
> SELECT MAX(latest\_event\_time) FROM conversation;

@tyd, thanks for replying. Yes, it seems from

```auto
sqlite> SELECT MAX(latest_event_time) FROM conversation;
1599505177.26918

```

that these conversations are still being stored in-memory — even though I also see these conversations in my DynamoDB table.

What should I do to prevent these messages from being stored in memory, and only in my external database?

---

<div class="post-metadata">

**Author:** ![Arjaan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/arjaan/32/5754_2.png) [@Arjaan](https://forum.rasa.com/u/Arjaan)\
**Post date:** [September 11, 2020, 1:11pm UTC](https://forum.rasa.com/t/rasa-memory-growing/33320/5 "2020-09-11T13:11:36Z")

</div>

@sum1l0st,

Can you describe the exact steps you take in deploying Rasa ?

Are you installing Rasa X, or only Rasa Open Source?
