0

I develop a django application with Postgres. On my local host where I develop the app, I use ./manage.py run to launch my app and it works successfully even with queries that produces huge output. But on production I faced with the issue that huge queries crashed with "MemoryError" on coping operations from data from database to my app. On production ngnix with uwsgi used. To fix this I set for uwsgi worker a memory limit set:

--limit-as 4096
--reload-on-rss 2048
--evil-reload-on-rss 4096

But this didn't help. Could anybody please recommend what to do with this issue and wht it occurs?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.