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>
>
>> 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