0

I have build a simple application with two pages (a multi-page Dash app) which I am running locally using Gunicorn with two workers and four threads. It's a simple dashboard application.

When I refresh the page in the browser and inspect the network tab, it usually takes 800ms to fetch the data and render it to the chart. The _dash-update-component typically takes about 800ms to respond and finish.

However, there are instances when I reload the page and the same process suddenly takes about one minute. During this time, the page stays completely white and only shows the text "Loading...". This behavior is also visible in the Chrome network logs: Network logs from Chrome

Has anyone experienced this or have an idea what might be causing this?

ninadepina
1,34913 silver badges20 bronze badges
asked Dec 4, 2025 at 10:53

1 Answer 1

0

gunicorn app:server --workers 4 --threads 1 --timeout 120

For CPU-heavy or Pandas/NumPy tasks, threads don’t help because of the Python GIL. Increasing worker and reducing threads improves responsiveness:

1.

answered Dec 4, 2025 at 11:06
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.