# RASA response is very very slow

**URL:** <https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [October 1, 2019, 8:47pm UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820 "2019-10-01T20:47:34Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![msaraf1](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@msaraf1](https://forum.rasa.com/u/msaraf1)\
**Post date:** [October 1, 2019, 8:47pm UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/1 "2019-10-01T20:47:34Z")

</div>

Hi After doing the rasax upgradation, I realize that rasa chatbot response is getting slower. Moreover it is difficult to create a compete chatbot story. And challenging to add correction in conversation in interactive mode.

Any advice to resolve it.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [October 2, 2019, 7:27am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/2 "2019-10-02T07:27:13Z")

</div>

@msaraf1 can you be more explicit about your issues? I.e.

> After doing the rasax upgradation,

upgrading from what version to what version?

> I realize that rasa chatbot response is getting slower.

how big is your model, i.e. how much training data?

> Moreover it is difficult to create a compete chatbot story.

what do you mean by this?

> And challenging to add correction in conversation in interactive mode.

how is it challenging?

---

<div class="post-metadata">

**Author:** ![LostButImproving](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lostbutimproving/32/4688_2.png) [@LostButImproving](https://forum.rasa.com/u/LostButImproving)\
**Post date:** [October 2, 2019, 12:26pm UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/3 "2019-10-02T12:26:55Z")

</div>

I’ll chime in to say, that when I am in interactive mode, I can’t actually change the responses that the bot gives AFTER its been posted, meaning I have to enter the actual story under stories, and rewrite them in there

---

<div class="post-metadata">

**Author:** ![msaraf1](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@msaraf1](https://forum.rasa.com/u/msaraf1)\
**Post date:** [October 4, 2019, 4:26pm UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/4 "2019-10-04T16:26:03Z")

</div>

Here is detail of version and rasa details

Docker version: Docker version 18.09.2, build 6247962

Python version: Python 3.6.9

RASA version : Rasa 1.3.6

Host operating system: Windows 10

4.9.125-linuxkit

Size of model: 9169KB

Size of data: 15KB

While doing the conversation in rasa, the response of rasa is quite slow.

For example if I ask rasa “please help to buy pizza”

Chatbot takes long time to response the question (around 15 to 60 sec)

Sometime rasa does not respond at all (keep running …)

Once we transfer the user conversation to interactive mode. It is quite difficult to make correction on “action or utter”. Sometime rasa reshuffle all the dialogues or sometime duplicate just previous dialogue. For example How are you How are you I am gemmy I am gemmy

---

<div class="post-metadata">

**Author:** ![rasafan](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rasafan](https://forum.rasa.com/u/rasafan)\
**Post date:** [March 2, 2020, 12:36am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/5 "2020-03-02T00:36:06Z")

</div>

Did you solve this?

---

<div class="post-metadata">

**Author:** ![kiranlvs93](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kiranlvs93/32/7396_2.png) [@kiranlvs93](https://forum.rasa.com/u/kiranlvs93)\
**Post date:** [March 4, 2020, 5:47am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/6 "2020-03-04T05:47:19Z")

</div>

I’m facing the same issue. Bot takes 1–3 seconds on an average to reply. My bot has about 10 intents, 2 forms, 160 nlu inputs and 2 actions. Environment:

- Linux RedHat7
- Rasa 1.8
- Rasax 0.25.2
- Python 3.6

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [March 9, 2020, 12:17pm UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/7 "2020-03-09T12:17:19Z")

</div>

@kiranlvs93 is the bot response time normal in e.g. `rasa shell` or other channels`?

---

<div class="post-metadata">

**Author:** ![tomgun132](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomgun132/32/7462_2.png) [@tomgun132](https://forum.rasa.com/u/tomgun132)\
**Post date:** [March 30, 2020, 10:40am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/8 "2020-03-30T10:40:04Z")

</div>

Hello,

I’m facing the same issue as well on `rasa shell`, `rasa interactive`, and pythonically in Jupyter notebook, starting `from rasa.core.agent import Agent` to `await agent.handle_text(message)`. The bot takes 2-6 seconds to reply. My bot has 6 intents, 10 entities (2 of them from duckling and spacy), 6 featurized slots, 3 actions, and 1 form action.

Environment:

- Windows 10 Home
- Rasa 1.9
- Python 3.7

I observed the actions server on debug mode and it seems like the custom actions run quiet fast, the NLU part takes 0.08-0.09s in jupyter notebook by importing the NLU model using `from rasa.nlu.model import Interpreter`. The slow part is right after I input into the bot by using any of either method above (shell, interactive, or jupyter), the action server receives request to run action from rasa core 1-2 seconds after I input the message. Everything run locally with endpoint `http://localhost:5055/webhook`

Do you know why this is happening? Thanks before.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [March 30, 2020, 1:37pm UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/9 "2020-03-30T13:37:39Z")

</div>

@tomgun132 please create a new post for your question. My question to the OP about `rasa shell` was to compare about their slow time in Rasa X, your issue with the python API is not the same.

---

<div class="post-metadata">

**Author:** ![kiranlvs93](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kiranlvs93/32/7396_2.png) [@kiranlvs93](https://forum.rasa.com/u/kiranlvs93)\
**Post date:** [March 30, 2020, 2:55pm UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/10 "2020-03-30T14:55:55Z")

</div>

I updated to **RASA 1.9.3** yesterday and noticed that the response is faster than RASA 1.8 in `rasa shell`. However, in ` **RASA X** ` response is slow.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [March 30, 2020, 3:04pm UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/11 "2020-03-30T15:04:17Z")

</div>

Hi @kiranlvs93 thanks for the update. by slow you mean ~2 seconds? If so, this is a known issue we’re working to resolve – in the meantime you can apply a workaround by disabling telemetry at this endpoint: [HTTP API](https://rasa.com/docs/rasa-x/api/rasa-x-http-api/#operation/disableTelemetry)

---

<div class="post-metadata">

**Author:** ![Jezemy](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jezemy](https://forum.rasa.com/u/Jezemy)\
**Post date:** [January 7, 2021, 5:38am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/12 "2021-01-07T05:38:43Z")

</div>

Is that happening in previous version of Rasa? Has it solved?

My server also takes over 2 second to respond my POST request.

I use the following command to start a new project and run my rasa server.

```auto
rasa init
rasa run --enable-api --port 5000

```

and then I post a simple request in Python

```auto
data = {'message': msg, 'sender': 'Jezemy', 'token': 'None'}
headers = {'content-type': 'application/json'}
r = requests.post('http://localhost:5000/webhooks/rest/webhook', json = data, headers = headers)

```

I print the cost time, It takes 2.7 to response the JSON data

---

<div class="post-metadata">

**Author:** ![SwenSchaeferjohann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/swenschaeferjohann/32/13209_2.png) [@SwenSchaeferjohann](https://forum.rasa.com/u/SwenSchaeferjohann)\
**Post date:** [February 3, 2021, 10:15am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/13 "2021-02-03T10:15:34Z")

</div>

@erohmensing Hey there 🙂 Any updates on this? Cheers!

---

<div class="post-metadata">

**Author:** ![sunliang0315](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sunliang0315/32/21196_2.png) [@sunliang0315](https://forum.rasa.com/u/sunliang0315)\
**Post date:** [July 29, 2022, 3:47am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/14 "2022-07-29T03:47:38Z")

</div>

I have the same issue, the response is about 2.1~2.4 seconds for the “mood\_bot” demo.

#### My env:

- windows 11
- python3.8
- rasa3.2

updated: It seems fine (response time ~180ms) when I use postman. why?

---

<div class="post-metadata">

**Author:** ![jehuty](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jehuty](https://forum.rasa.com/u/jehuty)\
**Post date:** [August 17, 2022, 2:48am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/15 "2022-08-17T02:48:07Z")

</div>

hello. I am facing the same issue with the same env. Do you solve the problom now??

---

<div class="post-metadata">

**Author:** ![jehuty](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jehuty](https://forum.rasa.com/u/jehuty)\
**Post date:** [August 17, 2022, 3:01am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/16 "2022-08-17T03:01:31Z")

</div>

Hi. Have you solved the problem？ I have the same situation with you.

---

<div class="post-metadata">

**Author:** ![chansonzhang](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chansonzhang/32/23653_2.png) [@chansonzhang](https://forum.rasa.com/u/chansonzhang)\
**Post date:** [November 24, 2023, 1:50am UTC](https://forum.rasa.com/t/rasa-response-is-very-very-slow/17820/17 "2023-11-24T01:50:08Z")

</div>

I met the same problem, it’s very painful to work with rasa in local machine. I don’t know why it’s so slow, since CPU and memory usage are all low. However, in our production machine with an official docker image rasa/rasa-sdk:3.3.0, it’s very fast. I’m wondering if there are any optimizations in this image that I can reproduce in my local machine?
