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
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
I thnk we need more guidance on how to optimize performance and memory
consumption.
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
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
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
> 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
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
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/
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
> 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 [
>
11 matches
Mail list logo