# Slow loading and rebooting app

**URL:** <https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321>\
**Category:** Community Cloud\
**Tags:** discussion\
**Created:** [March 10, 2024, 9:18am UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321 "2024-03-10T09:18:39Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yusuf](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/yusuf/32/45132_2.png) [@Yusuf](https://discuss.streamlit.io/u/Yusuf)\
**Post date:** [March 10, 2024, 9:18am UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/1 "2024-03-10T09:18:39Z")

</div>

Hi, my app was loading pretty fast until yesterday but it’s now very slow. I don’t receive any error but it’s just annoyingly slow. I updated anything on the app. So, the issue started suddenly. I rebooted the app a few times but this didn’t improve the performance. Also, rebooting takes ages which wasn’t the case before yesterday. I have other apps but I don’t have such issues with them. Can someone advise me where to check? Here is the [app](https://intelligence.streamlit.app/). Thanks

---

<div class="post-metadata">

**Author:** ![warisaraporn](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/warisaraporn/32/39919_2.png) [@warisaraporn](https://discuss.streamlit.io/u/warisaraporn)\
**Post date:** [March 10, 2024, 11:51am UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/2 "2024-03-10T11:51:27Z")

</div>

Hi,  
I’m facing the same problem right now. After updating my code yesterday, my app started to run super slowly. I tested my app on the local host, and it worked perfectly, but after I deployed it, I was unable to run it due to the time spent waiting too long.

If you find any solutions, please update.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [March 10, 2024, 3:30pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/3 "2024-03-10T15:30:01Z")

</div>

For me it takes 3 or 4 seconds to load, which is about what I would expect for a streamlit application.

---

<div class="post-metadata">

**Author:** ![Yusuf](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/yusuf/32/45132_2.png) [@Yusuf](https://discuss.streamlit.io/u/Yusuf)\
**Post date:** [March 11, 2024, 3:22pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/4 "2024-03-11T15:22:42Z")

</div>

Thanks for the response but it’s still loading incredibly slowly on my end although I tried this with different devices. When I refresh the browser after committing updates on GitHub, it takes a minimum of 60 seconds to see the app. I suspect there might be something wrong with some libraries I use for the app or the recent version of Streamlit.

---

<div class="post-metadata">

**Author:** ![ilya.peysakhov](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/ilya.peysakhov/32/75784_2.png) [@ilya.peysakhov](https://discuss.streamlit.io/u/ilya.peysakhov)\
**Post date:** [March 11, 2024, 3:33pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/5 "2024-03-11T15:33:09Z")

</div>

Same here, not only is rebooting taking a long time, the app is uninstalling and re-installing every python package at random times, including after pushing code changes in Github.

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [March 11, 2024, 7:49pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/6 "2024-03-11T19:49:11Z")

</div>

If you change the code, the cache is deleted and all the cached functions run again.

---

<div class="post-metadata">

**Author:** ![ilya.peysakhov](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/ilya.peysakhov/32/75784_2.png) [@ilya.peysakhov](https://discuss.streamlit.io/u/ilya.peysakhov)\
**Post date:** [March 11, 2024, 7:56pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/7 "2024-03-11T19:56:58Z")

</div>

i think its a deeper issue, according to the logs, when you make a code change, the entire app is rebuilt. See below, after it grabs the latest from git (just the app script, no changes made to requirements), it then starts pip operations again, collects the packages, uninstalls the existing ones, and installs the same packages again.

 ![image](https://global.discourse-cdn.com/streamlit/original/3X/6/e/6ee528ab9f10c3bba12689e5155f14a8be0c1471.png)

---

<div class="post-metadata">

**Author:** ![jfeliu16](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jfeliu16/32/49012_2.png) [@jfeliu16](https://discuss.streamlit.io/u/jfeliu16)\
**Post date:** [March 12, 2024, 9:38am UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/8 "2024-03-12T09:38:35Z")

</div>

Hello,  
The same happens to me, suddenly my app starts to go slow. On localhost, I don’t have a problem, but when I upload on the web, takes a lot of time installing the dependencies and once started go very slow, that happens in most of the parts of my app.

---

<div class="post-metadata">

**Author:** ![andrewpimm](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@andrewpimm](https://discuss.streamlit.io/u/andrewpimm)\
**Post date:** [March 12, 2024, 11:57am UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/9 "2024-03-12T11:57:36Z")

</div>

I’m having the same issue: at some point in the last few days, the runtime of my deployed app has increased significantly.

I just compared the runtime of my local version with that of the deployed app, and found that the deployed app takes about 20 times as long to run, making it considerably less appealing to users than it was previously.

Any help on this would be much appreciated.

---

<div class="post-metadata">

**Author:** ![Yusuf](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/yusuf/32/45132_2.png) [@Yusuf](https://discuss.streamlit.io/u/Yusuf)\
**Post date:** [March 12, 2024, 12:05pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/10 "2024-03-12T12:05:47Z")

</div>

I agree! The runtime is now significantly higher than before even if there is no git push (it takes at least 3-4 mins to run after a git push). This was not the case last week.

---

<div class="post-metadata">

**Author:** ![ilya.peysakhov](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/ilya.peysakhov/32/75784_2.png) [@ilya.peysakhov](https://discuss.streamlit.io/u/ilya.peysakhov)\
**Post date:** [March 12, 2024, 7:28pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/11 "2024-03-12T19:28:35Z")

</div>

looks like something is happening, a new version popped up and the cloud is doing a force downgrade

> **[Comparing 1.32.0...1.32.1 · streamlit/streamlit](https://github.com/streamlit/streamlit/compare/1.32.0...1.32.1)**
>
> Streamlit — A faster way to build and share data apps. - Comparing 1.32.0...1.32.1 · streamlit/streamlit

![image](https://global.discourse-cdn.com/streamlit/original/3X/8/c/8c0e211360c0e68b8bf98e7652d56ae710225d05.png)

---

<div class="post-metadata">

**Author:** ![Yusuf](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/yusuf/32/45132_2.png) [@Yusuf](https://discuss.streamlit.io/u/Yusuf)\
**Post date:** [March 12, 2024, 9:29pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/12 "2024-03-12T21:29:03Z")

</div>

I’ve downgraded Streamlit to 1.31. The issue seems to have resolved.

---

<div class="post-metadata">

**Author:** ![lukasmasuch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/lukasmasuch/32/52605_2.png) [@lukasmasuch](https://discuss.streamlit.io/u/lukasmasuch)\
**Post date:** [March 12, 2024, 9:56pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/13 "2024-03-12T21:56:58Z")

</div>

We have an issue with the `1.32.0` version which causes our CPU utilization to max out ☹ The `1.32.1` patch will likely fix that, but it needs a bit further evaluation.

---

<div class="post-metadata">

**Author:** ![PaleAlex](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/palealex/32/66163_2.png) [@PaleAlex](https://discuss.streamlit.io/u/PaleAlex)\
**Post date:** [March 14, 2024, 10:21am UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/14 "2024-03-14T10:21:11Z")

</div>

Hello. Same here with 1.27.0 version. Very slow app. Solved changing to 1.31.0

---

<div class="post-metadata">

**Author:** ![lukasmasuch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/lukasmasuch/32/52605_2.png) [@lukasmasuch](https://discuss.streamlit.io/u/lukasmasuch)\
**Post date:** [March 14, 2024, 5:13pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/15 "2024-03-14T17:13:15Z")

</div>

The 1.32.2 patch is released which fixes the issue.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [September 10, 2024, 5:13pm UTC](https://discuss.streamlit.io/t/slow-loading-and-rebooting-app/64321/16 "2024-09-10T17:13:39Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
