[uWSGI] uwsgi/gevent segmentation fault

2017-12-06 Thread Etienne Robillard
Hi, I'm experiencing a segmentation fault when I try to run uwsgi with the gevent handler: % /usr/local/bin/uwsgi --reload-on-rss 200 --gevent 512 --socket localhost:8000 --wsgi-file $ROOTDIR/www-bin/dispatch.uwsgi --threads 2 --processes 4 --master --daemonize /var/log/uwsgi.log Here's

Re: [uWSGI] [Tutor] How to debug a memory leak in a wsgi application?

2017-12-06 Thread Etienne Robillard
Hi Alan, Thanks for the reply. I use Debian 9 with 2G of RAM and precompiled Python 2.7 with pymalloc. I don't know if debugging was enabled for this build and whether I should enable it to allow memory profiling with guppy... My problem is that guppy won't show the heap stats for the uWSGI

Re: [uWSGI] memory leak in django app?

2017-12-06 Thread Etienne Robillard
Hi Antonis, Thank you for your reply. I installed the htop utility and found that 2 of my 4 uWSGI processes are using 882M (42.7%) of resident memory each. Theses two processes takes about  (85%) of the available RAM memory! That can explain why I get "out of memory" errors when no more