# Rasa Eats Memory. Is Garbage been handled?

**URL:** <https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631>\
**Category:** Rasa Open Source\
**Created:** [December 19, 2019, 9:48am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631 "2019-12-19T09:48:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gokul](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Gokul](https://forum.rasa.com/u/Gokul)\
**Post date:** [December 19, 2019, 9:48am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/1 "2019-12-19T09:48:21Z")

</div>

I have 10 chatbot running in different ports with 10 different action server.(even tried with 1 action server not a big change in memory) Each chatbot have 2000 or more intents. I am using fallback and the response will be ‘$no out$’ I will hit all the 10 application api and from where I get response which does not starts with ‘$’ is my response. When all the 10 chatbot runs in background it uses more than 25 gb in which 15gb takes from free memory and other from available memory.

rasa version 1.2.3 OS : ubunbtu

Is there any way I could reduce the memory?

My config file

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/6/69da5a7199abc5226c4e72885bb97600a4f94cf0.png)

---

<div class="post-metadata">

**Author:** ![Gokul](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Gokul](https://forum.rasa.com/u/Gokul)\
**Post date:** [December 19, 2019, 11:01am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/2 "2019-12-19T11:01:16Z")

</div>

Is there any way to load spacy only once and use it in all my 10 applications?

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [December 19, 2019, 1:02pm UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/3 "2019-12-19T13:02:10Z")

</div>

see this issue [Removing projects · Issue #3259 · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/issues/3259)

---

<div class="post-metadata">

**Author:** ![Gokul](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Gokul](https://forum.rasa.com/u/Gokul)\
**Post date:** [December 20, 2019, 4:11am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/5 "2019-12-20T04:11:45Z")

</div>

Thanks for your quick response Alan. According to my understanding I cannot load multiple projects to same appliacation as I am using rasa 1.x.So I continued to run 10 different API for 10 applications using run --enable-api command and by specifying 10 different port number.

Since it runs 10 times it loads spacy 10 times in the memory so it eats more memory.Is it possible to load spacy only once and make all other api to use the same spacy but different models(core and nlu) since my config.yml is same for all?

I even tried to concat all applications together and train as one project. I m endingup with memoryerror after training for 2 hours.

Any suggestions to overcome memory issue.

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [December 20, 2019, 9:10am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/6 "2019-12-20T09:10:16Z")

</div>

since you are using English, I would recommend using the convert featurizer instead. It uses much less memory and also gives better performance!

---

<div class="post-metadata">

**Author:** ![Gokul](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Gokul](https://forum.rasa.com/u/Gokul)\
**Post date:** [December 20, 2019, 9:57am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/7 "2019-12-20T09:57:50Z")

</div>

I am not sure if I miss anything. I have installed tensorboard==1.13.1

tensorflow==1.13.1

tensorflow-estimator==1.13.0

tensorflow-hub==0.7.0

tensorflow-text==1.15.1 I am getting the following error. Failed to find component class for 'ConveRTFeaturizer’Unknown component name. Check your configured pipeline and make sure the mentioned component is not misspelled.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [December 20, 2019, 10:11am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/8 "2019-12-20T10:11:23Z")

</div>

are you using 1.5.0 or later? [rasa/CHANGELOG.rst at master · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/blob/master/CHANGELOG.rst#150---2019-11-26)

---

<div class="post-metadata">

**Author:** ![Gokul](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Gokul](https://forum.rasa.com/u/Gokul)\
**Post date:** [December 20, 2019, 10:14am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/9 "2019-12-20T10:14:22Z")

</div>

Rasa: 1.2.3 .

can I use the convert in rasa 1.2.3?

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [December 20, 2019, 10:25am UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/10 "2019-12-20T10:25:37Z")

</div>

you need 1.5.0 or above

---

<div class="post-metadata">

**Author:** ![Gokul](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@Gokul](https://forum.rasa.com/u/Gokul)\
**Post date:** [December 20, 2019, 1:19pm UTC](https://forum.rasa.com/t/rasa-eats-memory-is-garbage-been-handled/22631/13 "2019-12-20T13:19:09Z")

</div>

I have found solution to load from local thanks.But after using Convert I am getting response correct but my confidence level is too low Initially with spacy I got 0.85 - 0.98. for matching values Not i am getting only 0.25 - 0.4

Please advice
