only web2py.py runs import_all as a means to check that all needed
modules are there in order to build the binaries.
If you use the wsgihandler or the cgihandler there is no import_all. I
am not sure what difference it makes in terms of memory

On Aug 11, 10:41 am, Frank Church <[email protected]> wrote:
> On 11 August 2010 16:31, mdipierro <[email protected]> wrote:
>
> > It is typical. It can be reduced. Somewhere there was a thread about
> > it.
>
> Is this the one you are referring to 
> -http://www.mail-archive.com/[email protected]/msg35056.html?
>
> If web2py is not being run in admin or development mode, will the memory
> requirements be much better, or even running development with a third-party
> web server, like nginx or lighttpd?
>
>
>
> > On Aug 11, 9:59 am, Frank Church <[email protected]> wrote:
> > > On 11 August 2010 15:38, Thadeus Burgess <[email protected]> wrote:
>
> > > > There is the ability to reduce memory usage however. Web2py likes to
> > > > call the import_all module when it first loads up. This basically
> > > > imports every web2py module so they are loaded into the python
> > > > interpreter. That means when your code actually imports anything from
> > > > gluon, the web server won't have to devote the resources to actually
> > > > importing that module when a client requests a page. If you comment
> > > > out the calls to the import_all module, it will reduce the initial
> > > > memory usage.
>
> > > Sorry I mean't Mb, 126M, and it doesn't look right to me
>
> > > I run it by using ./web2py.py.
>
> > > --
>
> > > > Thadeus
>
> > > > On Wed, Aug 11, 2010 at 9:32 AM, Thadeus Burgess <
> > [email protected]>
> > > > wrote:
> > > > > Thats less than a MB. I don't see why you are complaining =P
>
> > > > > Typically my web2py instances all run around 75MB, with a max of
> > 150MB
> > > > > under heavy traffic load.
>
> > > > > It also depends on how much your caching or how big your select
> > queries
> > > > are.
>
> > > > > --
> > > > > Thadeus
>
> > > > > On Wed, Aug 11, 2010 at 8:20 AM, Frank Church <[email protected]>
> > > > wrote:
> > > > >> I just started web2py on Linux, using the web2py.py command and
> > memory
> > > > used
> > > > >> by the process is already 126K.
>
> > > > >> What is wrong, how can it be reduced?
>
> > > > >> --
> > > > >> Frank Church
>
> > > > >> =======================
> > > > >>http://devblog.brahmancreations.com
>
> > > --
> > > Frank Church
>
> > > =======================http://devblog.brahmancreations.com
>
> --
> Frank Church
>
> =======================http://devblog.brahmancreations.com

Reply via email to