Error running application

Hello. It works when I run the application locally. But when I try to deploy streamlit I get an error.

The log says:

[12:34:03] :exclamation: The service has encountered an error while checking the health of the Streamlit app: Get “http://localhost:8501/healthz”: read tcp> read: connection reset by peer
[12:35:34] :exclamation: Streamlit server consistently failed status checks
[12:35:34] :exclamation: Please fix the errors, push an update to the git repo, or reboot the app.

I’ll be happy if you can help.

Hi @zehranuryi,

Thanks for posting! It looks like your app is exceeding the 1GB resource limit (the memory usage is surging to 3GB), which is causing the error. Check out this blog post for some suggestions on reducing your app’s memory usage.


Hi @Caroline . Thank you. I’ll work on it.