Hi,

My models are relatively big in file size (> 200 kb in total).

Is ALL this code being loaded into memory for each web request over and over 
again, and without reusing the same files (that do not change)?.

I'm noticing a consistent increase in memory % in each of the uwsgi-python 
processes/workers for simple web requests.

This makes me think that web2py (or uwsgi-python) is loading the code for 
all models into memory for each web request without any caching / reusing, 
and without releasing any memory from previous requests, but only consuming 
more and more memory each time.

This means that I run out of memory after a very few requests !

Am I not correct above?, am I doing something wrong?, is this actually 
expected?, does this occur regardless of the web server or wsgi interface?.

On a related note, should I move everything to modules (instead of models)?, 
will this fix the memory issues?.

How can I solve this show-stopper problem?.

I'm on a vps (vps.net) with ubuntu 10.4 lts lucid, nginx, uwsgi-python, 
postgresql, latest web2py.

Thanks,

   Carlos

Reply via email to