Re: [web2py] Re: CPU and memory issues with apache

2012-10-23 Thread Marin Pranjić
@Massimo, I upgraded to 2.2.1 but memory problems are still there. I will do some more testing. Memory goes up +100Mb in less then a minute when I try to make a lot of traffic (hitting Ctrl + R ) @Niphlod This is the config part. I think values are default ones that come with apache.

Re: [web2py] Re: CPU and memory issues with apache

2012-10-23 Thread Niphlod
Disclaimer: really not trying to be the devil's advocate here, but it's really unclear to me why with uwsgi I can't see any memory leak (and it's not set to restart itself on high memory usage) with over 2millions requests. You are confirming that configuring correctly htop you see only 2

Re: [web2py] Re: CPU and memory issues with apache

2012-10-23 Thread Marin Pranjić
I have 4 apache processes running. One is run by a root and other 3 are owned by www-data. I will try your suggestion. Minor update: hitting examples app does not cause any issues (CPU is low and memory is stable) welcome app has slow memory increase - I started with freshly restarted apache,

Re: [web2py] Re: CPU and memory issues with apache

2012-10-23 Thread Massimo Di Pierro
If you create an instance with an object with a __del__ method and a self reference (of if a module that you use creates an instance of such object), Python cannot collect it. Python uses reference counting and it cannot collect objects with self references and a del method. Depending on how

Re: [web2py] Re: CPU and memory issues with apache

2012-10-20 Thread Massimo Di Pierro
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

Re: [web2py] Re: CPU and memory issues with apache

2012-10-20 Thread Niphlod
one sec. I don't see in that htop 2 processes with many threads. There are 27 different PIDs there! What is your apache config ? On Saturday, October 20, 2012 2:20:23 PM UTC+2, Massimo Di Pierro wrote: I think you are experiencing what is described in this post:

[web2py] Re: CPU and memory issues with apache

2012-10-19 Thread Massimo Di Pierro
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