Are you running web2py.py or wsgihandler? If you are starting web2py.py you may want to comment
import gluon.import_all it is there to detect missing/buggy modules but it causes it to use more memory than necessary. Massimo On Sep 22, 12:02 am, Christopher Steel <[email protected]> wrote: > Hi Johann, > > Web2py is microscopic itself. 55Mb over is a lot! I have a really hard > time imagining how this might happen from Web2py. > > Have you got anything else running on your account like Plone or > Mercurial (pulling large files like photos?) > > Any breakdown you can get on memory usage might help a lot. Are we > talking about diskspace and/or ram? > > I had some issues (and still do) with Webfaction using another product > with Apache, but that product was a good 35 MB itself and the > databases it created where huge, as in 100MB and more. That would be > very difficult to do with Web2py unless you are uploading video's, > photos, music, photos or other large files. > > Moving to a shared 3 plan did not solve the problem with the other > product I was using but adding web2py and running a web2py basic > website hardly bumped my memory usage up at all. > > Web2py itself was under 5megs and a basic application less than one > meg. > > Did you install with the mod_wsgi webfaction script? > > Cheers, > > Chris > > On Sep 21, 9:47 am, Johann Spies <[email protected]> wrote: > > > Yesterday for the first time I deployed web2py on a commercial > > platform (Webfaction) and today I received two messages from > > Webfaction that I was using more memory (135Mb) than what the Shared 1 > > option allowed for (80Mb). And that was before the application was in > > full use! I have requested an upgrade to Shared 3. > > > Now my question: How do I keep memory usage down on such a platform > > when I have to serve 1. a fairly complex database and 2. a possibility > > of a lot of data? I chose Postgresql as database thinking that with > > the efficiency of Postgresql as backend I would avoid using too much > > memory. > > > Regards > > Johann > > > -- > > "The fool hath said in his heart, There is no God..." > > Psalm 14:1 > >

