Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread xgdlm
> > This week I decided to give a try to a new configuration. I'm now > > running django on lighttpd / fcgi and I have no swap at all. > > So I'm aware the mod_python is the prefered way to use django ... buy > > I'm quite happy with that new server configuration :) > > Can you give some more

Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread Jeremy Dunck
On 3/30/07, xgdlm <[EMAIL PROTECTED]> wrote: ... > This week I decided to give a try to a new configuration. I'm now > running django on lighttpd / fcgi and I have no swap at all. > So I'm aware the mod_python is the prefered way to use django ... buy > I'm quite happy with that new server

Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread xgdlm
Hello, I've notice the same memory consuption on my servers. I'm running django appz on 3 LVS loadbalanced mod_python apache http servers. If, for instance, I do a maintnance on one of the server Swap is increasing a lot on the two remaining servers, even if those two servers should handle the

Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread Steven Armstrong
Graham Dumpleton wrote on 03/30/07 12:27: > On Mar 30, 6:31 pm, Steven Armstrong <[EMAIL PROTECTED]> wrote: >> My understanding is that every apache child pulls in all modules >> (mod_python, mod_perl, mod_php, mod_your_favorite_mod_here) which all >> consume memory. So you end up with loads of

Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread Graham Dumpleton
On Mar 30, 6:31 pm, Steven Armstrong <[EMAIL PROTECTED]> wrote: > My understanding is that every apache child pulls in all modules > (mod_python, mod_perl, mod_php, mod_your_favorite_mod_here) which all > consume memory. So you end up with loads of processes using ??MB of RAM > to serve up e.g. a

Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread Steven Armstrong
[EMAIL PROTECTED] wrote on 03/29/07 20:15: > I'm running a production Django application on two loadbalanced > webservers and a single, dedicated Postgres server handling around > 500k requests/day. I'm using memcached, and my database server > performance has been fantastic. > > Lately, I've

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread Malcolm Tredinnick
Warning: almost no actual Django-related content below... On Thu, 2007-03-29 at 18:15 +, [EMAIL PROTECTED] wrote: > I'm running a production Django application on two loadbalanced > webservers and a single, dedicated Postgres server handling around > 500k requests/day. I'm using memcached,

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread [EMAIL PROTECTED]
> ... Failing all else start > profiling. Coordinate those memory usage stats you have with what is > going on in the server to help narrow down where in your code to > look. Hope that helps and good luck. Is there a way of profiling mod_python with hotshot (or another tool) that will give me

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread Adrian Holovaty
On 3/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > My most popular view looks for a memcached RSS feed, and if it doesn't > exist, uses URLLIB2 to go out and get it (then cache it). I've read > about possible problems with URLLIB2.openurl() that it might not free > the socket after use.

Re: Django/mod_python high memory usage - possible leak?

2007-03-29 Thread [EMAIL PROTECTED]
You stated that things were working fine and lately they have gone South. Usually in this case it isn't about something breaking all of a sudden. Something has probably changed. Start with what you have changed. Added any new features or code lately? Moving out further have there been any

Django/mod_python high memory usage - possible leak?

2007-03-29 Thread [EMAIL PROTECTED]
I'm running a production Django application on two loadbalanced webservers and a single, dedicated Postgres server handling around 500k requests/day. I'm using memcached, and my database server performance has been fantastic. Lately, I've been hitting very high percentages of free memory used,