App Service Using Streamlit Gets Stuck and Does Not Load the Application Intermittently

Dcm 20 Reputation points
2025-09-05T02:35:55.46+00:00

Hello All,

We recently experienced an issue with our Streamlit application hosted on Azure App Service (B3:1)[Linux] behind an Application Gateway, it was working smoothly.
Although the problem is currently resolved after restarting the App Service, we would like to understand the possible root causes and recommendations to prevent it in the future.

Scenario:

  • Architecture:
    • Client → HTTPS custom domain → Application Gateway → Azure App Service → Streamlit app
  • Symptom:
    • While accessing the app via the HTTPS domain, the Streamlit page did not fully load.
    • The issue occurred intermittently and was resolved immediately after restarting the App Service.

Observations:

  • CPU and memory usage on the App Service were normal during the incident.
  • App Service is configured with “Always On”, setting as ON so it does not go idle.
  • Restarting the App Service immediately resolves the problem.
  • Application Logs did not show any critical errors during the issue.
  • No network issue at client's browser side.
  • Application gateway logs does not have any issues.

Questions:

  1. What could be the likely root cause of this intermittent “stuck” behavior for a Streamlit app behind an Azure Application Gateway using HTTPS?
  2. Is it something like Transient network glitch between Application Gateway and App Service.

Additional information:

  1. This started from 3-Sept 9:00 am, 13:30 JST - Was any service outage etc. during this time,

We would greatly appreciate guidance or insights on this as this is critical and occurred on client's environment.

Thank you in advance!

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.