While  testing webfaction I had launched a very simple app that required login 
to use. No one was registering so no one was using anything other than the 
landing page. However, webfactiion continually killed my process for going over 
it's memory limits. When I asked what was causing this and what I could do to 
keep it under my account limit their reply was that this is a common occurrence 
with web2py apps. I really didn't have the necessary skills to get to the 
bottom of it, or the time to invest in acquiring them. I decided to self-host 
the app on RackSpace Cloud Servers. It was discouraging that a simple running 
app with no users or traffic would exhaust the allowed memory. I had their most 
basic plan which IIRC offers 256 Mb of ram. 

-- 
Jon Molesa


On Monday, June 18, 2012 at 3:08 PM, Massimo Di Pierro wrote:

> Currently there is not built-in way to limit memory usage. You can expire it 
> but does not get deleted, only overwritten. You can explicitly delete an item 
> from the cache using cache.ram.clear(regex) clears all items with ket 
> matching regex.
> 
> On Monday, 18 June 2012 07:42:06 UTC-5, Lucas R. Martins wrote:
> > i'm not using web2py-level caching, but i would like to use, if i can limit 
> > memory usage and expire it when i need.
> > i have compiled app and i'm using sqlite. sqlite is a problem?
> > 
> > 
> > 2012/6/18 Massimo Di Pierro <massimo.dipie...@gmail.com 
> > (mailto:massimo.dipie...@gmail.com)>
> > > Are you using caching? Are you using sqlite? We should nail down the 
> > > cause of this problem.
> > > Did you try to bytecode compile the app?
> > > 
> > > Massimo
> > > 
> > > 
> > > On Sunday, 17 June 2012 21:17:01 UTC-5, Lucas R. Martins wrote:
> > > > Hi guys,
> > > > 
> > > > I'm running a website with ~ 900 urls and no many daily access in a 
> > > > small vps. I have observed that, when a start the server, this use only 
> > > > 10mb, in my case.
> > > > 
> > > > However, with the time and natural access (specially googlebot), the 
> > > > server memory usage grow and grows indefinitely until use all server 
> > > > memory.
> > > > 
> > > > There is anything to do to limit web2py memory usage and force it to 
> > > > free unused memory? There is any kind of internal ram cache which can 
> > > > be disabled?
> > > > 
> > > > 
> > > > 
> > > > Thanks.
> > 

Reply via email to