Re: [web2py] vps - memory problems

2011-06-03 Thread Carlos
Thanks for all the recommendations. But it still worries me that web2py (or uwsgi) does not automatically (a) cache/reuse unmodified code and (b) release memory after requests are served (or while idle), after each web request, and regardless of how small or big models actually are. Carlos

Re: [web2py] vps - memory problems

2011-06-03 Thread Bruno Rocha
On Fri, Jun 3, 2011 at 11:50 PM, pbreit wrote: > I thnk we need more guidance on how to optimize performance and memory > consumption. *what I am doing:* - In models only table definitions and configuration. Avoid the use of models for classes, functions and other objects. - Use of submodels w

Re: [web2py] vps - memory problems

2011-06-03 Thread pbreit
I thnk we need more guidance on how to optimize performance and memory consumption.

Re: [web2py] vps - memory problems

2011-06-03 Thread Bruno Rocha
On Fri, Jun 3, 2011 at 10:39 PM, Carlos wrote: > Hi guys, > > Many thanks for all your suggestions. > > Can you please confirm / correct the following? ... > > Does web2py load the code from all models into memory for each and every > web request?, or does it cache/reuse the same code (as long as

Re: [web2py] vps - memory problems

2011-06-03 Thread Carlos
Hi guys, Many thanks for all your suggestions. Can you please confirm / correct the following? ... Does web2py load the code from all models into memory for each and every web request?, or does it cache/reuse the same code (as long as it does not change)?. I know web2py executes all models fo

Re: [web2py] vps - memory problems

2011-06-03 Thread Jhonny5
On 3 June 2011 21:57, Roberto De Ioris wrote: > > > 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

Re: [web2py] vps - memory problems

2011-06-03 Thread Roberto De Ioris
> 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-pyt

Re: [web2py] vps - memory problems

2011-06-03 Thread Bruno Rocha
On Fri, Jun 3, 2011 at 4:03 PM, Carlos wrote: > 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)? > Now you can use conditional models

Re: [web2py] vps - memory problems

2011-06-03 Thread Carlos
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/

Re: [web2py] vps - memory problems

2011-06-03 Thread Carlos
Thanks Roberto. I can now see all options for uwsgi (including the one you mention for memory-report) here: http://projects.unbit.it/uwsgi/wiki/Doc Thanks again, Carlos

Re: [web2py] vps - memory problems

2011-06-03 Thread Roberto De Ioris
> Hi, > > I'm testing my production environment (vps with ubuntu 10.4 lts lucid, > nginx, uwsgi, postgresql, latest web2py), and I detected some memory > problems, please check: > > > root@vps:~# htop > > 1 [|| > 1.0%] Tasks: 104 total, 1 running > 2 [ >

[web2py] vps - memory problems

2011-06-03 Thread Carlos
Hi, I'm testing my production environment (vps with ubuntu 10.4 lts lucid, nginx, uwsgi, postgresql, latest web2py), and I detected some memory problems, please check: root@vps:~# htop 1 [||

[web2py] vps - memory problems

2011-06-03 Thread Carlos
Hi, I'm testing my production environment (vps with ubuntu 10.4 lts lucid, nginx, uwsgi, postgresql, latest web2py), and I detected some memory problems, please check: root@vps:~# htop 1 [||