6

uwsgi memory usage optimisation

view full story
linux-howto

http://serverfault.com – I'm running several django sites on uwsgi, and I'm attempting to optimise my configuration for memory usage, but the --idle and --die-on-idle flags don't seem to be doing anything. Each daemon starts off at around 10-12MB and increases to around 30MB once it has served a request, but then stays there even when idle for some time. My startup command is: uwsgi --cheap --idle 60 --die-on-idle --http :8083 --wsgi-file /var/django/mysite/apache/django.wsgi Is there anything I'm missing here? From the docs, I'd expect the "--idle" flag to make it drop back to its initial memory usage after 60 se (HowTos)