> I was migrated to a newer webfaction server and now uwsgi compiles. I
> first
> tried limiting to 64 MB of memory and 1 process:
>
> uwsgi --http=127.0.0.1:port --pythonpath /user/web2py --module wsgihandler
> -d /user/uwsgi.log -t 20 --async 24 --ugreen --limit-as 64 -r --no-orphans
> -M -p 1 --touch-reload /user/uwsgireload.txt --reload-on-rss 50
>
> But this lead to MemoryError's for my more database intensive pages. Then
> increased to 80 MB and the MemoryError's have stopped.
> Should this much memory really be needed, or is there likely a problem
> with
> web2py / my app?
>
> Richard
>

You could try moving to a 1.0 release (rc7 is just out there) and change
your command line to:

uwsgi --http-socket 127.0.0.1:port --pythonpath /user/web2py --module
wsgihandler -d /user/uwsgi.log -t 20 -r --no-orphans -M -p 1
--touch-reload /user/uwsgireload.txt --evil-reload-on-rss 64

you will gain one process and async monitoring of the --evil-reload-on-rss
option. You should make a run of the server with the -m option to get
memory usage after each request in your logs, to eventually catch some
leak of your app.


-- 
Roberto De Ioris
http://unbit.it

Reply via email to