I run the application on the docker, it gives an error. There is no memory limit, in docker stats
it shows that 32gb of memory is available. But the container behaves strangely at startup, although 32gb is available, it does not reach 10gb in use, it gives an error with about 9gb of memory. This means that it does not reach 10gb.
How do I solve my memory limitation problem?
2
Answers
helps me adding timeout parameter
gunicorn src.app:app --workers 2 --worker-class uvicorn.workers.UvicornWorker --timeout 1000 --bind 0.0.0.0:${APP_PORT}
--timeout 1000
There are a few things you can check to resolve the problem:
1.
Or for docker-compose file:
Check Docker events by below command for any memory related issue:
Hope it helps!