I think you are experiencing what is described in this post:
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/leak/web2py/Go1TUyDm4ys/_2W7qnK8ZMEJ
and it was fixed in 2.1.1.

Massimo

On Saturday, 20 October 2012 02:04:32 UTC-5, Marin Pranjić wrote:
>
> web2py 2.0.9
> python 2.7.2
>
> I tried apache, rocket and uwsgi.
>
> I was stressing the server with many requests to monitor the memory usage.
> Memory was slowly going up.
> I think it is normal for memory to increase a bit but not sure how much 
> should it go up, and should it decrease when I stop making traffic.
>
> I don't know how to speed up the memory problem. I didn't try other 
> servers much because this happens in production and I depend on apache 
> config (rewrite rules).
>
> After apache restart, memory is ~120Mb and the rest is free.
> It goes up to 250Mb very fast and then it stabilizes (i think this is 
> expected).
>
> However this is how it looks like after some time (image attached).
>
> I do not use any sort of caching in web2py. I do not host anything else in 
> apache that might cause it.
> I use default apache config with mpm_worker module.
> It should create 2 only processes with many threads and it does.
>
>
>
> On Fri, Oct 19, 2012 at 9:16 PM, Massimo Di Pierro 
> <[email protected]<javascript:>
> > wrote:
>
>> What web2py version? What Python version? What apache version? Do you get 
>> the leak running with rocket?
>>
>>
>> On Friday, 19 October 2012 12:24:07 UTC-5, Marin Pranjić wrote:
>>>
>>> Not sure if web2py has anything with this. Could be.
>>>
>>> First issue is that CPU jumps up  to 100%. I am watching it with htop 
>>> and it happens every few minutes, 'apache2' process is using it.
>>> Site becomes unresponsive.
>>>
>>> I tried to restart apache several times but it didn't help.
>>> However, after server reboot CPU is back to normal and mostly below 2% 
>>> usage.
>>>
>>> Another issue is the memory. After server reboot memory consumption is 
>>> <25%. After some time it goes up to 85%.
>>> I have a controller that calls subprocess.Popen and sometimes it doesn't 
>>> work because of "Cannot allocate memory".
>>> This makes the memory consumption an issue.
>>> It seems that only apache memory is growing (still using htop to check 
>>> it).
>>>
>>> I am not an apache expert and not sure what to do. I can provide 
>>> additional details if needed.
>>> I hope someone can help :)
>>>
>>> Marin
>>>
>>  -- 
>>  
>>  
>>  
>>
>
>

-- 



Reply via email to