Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [propel-dev] trac/mod_python memory (was Re: News about NestedSet support in Propel ?)

propel
Discussion topic

Back to topic list

Re: [propel-dev] trac/mod_python memory (was Re: News about NestedSet support in Propel ?)

Reply

Author Alan Pinstein <apinstein at mac dot com>
Full name Alan Pinstein <apinstein at mac dot com>
Date 2006-12-18 07:45:57 PST
Message Another thing that you could do is put in a cron script that runs
every minute and checks to see if the server is alive (or maybe it
would check memory use) and then HUP apache appropriately. You could
even do this without checks; just attempt a "graceful" first and if
the server isn't up; issue a start". Graceful will restart apache in
such a way that users don't notice (I forgot exactly how but
basically it only restarts a server process that isn't handling
requests, so it lets existing req's finish).

With UNIX servers, it's much better to stop processes from using too
much memory early, because once the OS is out it starts killing
things. So even if you get apache back up, you aren't sure what else
was killed (and thus needs a restart). It may be logged somewhere of
course, but still that's not the point.

Alan

On Dec 18, 2006, at 9:29 AM, Hans Lellelid wrote:

> Soenke Ruempler - NorthClick wrote:
>> Hans Lellelid <mailto:hans at velum dot net> wrote on Monday, December
>> 18, 2006
>> 3:23 PM:
>>
>>
>>>> I know that propel.phpdb.org has had a hard time staying online. I
>>>> spent some time this weekend setting up Nagios for monitoring, but
>>>> my configuration is still now working correctly. I may switch to
>>>> a tool that I find easier to configure (e.g. OpenNMS), but for
>>>> now, just ping me & I will restart Apache. I'm also going to look
>>>> into limiting mod_python/Apache memory consumption, per Alan's
>>>> suggestion.
>>>>
>>
>> Yeah we've to restart our trac server each morning, too :D
>>
>> What could help is to lower the MaxRequestPerChild directive so
>> childs are
>> terminated after a specific number of requests. But I don't know
>> if the
>> memory allocation is per-child or global.
>>
> Ok, I'll try that out. I probably should also just cron an apache
> stop
> & start every AM.
>
> Hans
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>

« Previous message in topic | 7 of 20 | Next message in topic »

Messages

Show all messages in topic

News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-17 04:35:07 PST
     Re: News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-18 04:39:14 PST
         Re: [propel-dev] Re: News about NestedSet support in Propel ? hlellelid Hans Lellelid 2006-12-18 06:20:10 PST
             Re: [propel-dev] Re: News about NestedSet support in Propel ? hlellelid Hans Lellelid 2006-12-18 06:23:03 PST
                 RE: [propel-dev] Re: News about NestedSet support in Propel ? Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> 2006-12-18 06:29:39 PST
                     Re: [propel-dev] trac/mod_python memory (was Re: News about NestedSet support in Propel ?) hlellelid Hans Lellelid 2006-12-18 06:29:49 PST
                         Re: [propel-dev] trac/mod_python memory (was Re: News about NestedSet support in Propel ?) Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2006-12-18 07:45:57 PST
             Re: [propel-dev] Re: News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-18 12:09:53 PST
                 Re: [propel-dev] Re: News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-18 12:10:50 PST
                     Re: [propel-dev] Re: News about NestedSet support in Propel ? hlellelid Hans Lellelid 2006-12-18 12:11:32 PST
                         Re: [propel-dev] Re: News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-18 12:26:43 PST
                             Re: [propel-dev] Re: News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-24 02:52:40 PST
                                 Re: [propel-dev] Re: News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-24 03:34:48 PST
                                     Re: [propel-dev] Re: News about NestedSet support in Propel ? hlellelid Hans Lellelid 2006-12-24 05:37:01 PST
                                         Re: [propel-dev] Re: News about NestedSet support in Propel ? hlellelid Hans Lellelid 2006-12-24 09:30:04 PST
                                             Re: [propel-dev] Re: News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-25 03:40:17 PST
                                                 Re: [propel-dev] Re: News about NestedSet support in Propel ? hlellelid Hans Lellelid 2006-12-25 04:57:26 PST
                                 Re: [propel-dev] Re: News about NestedSet support in Propel ? Thomas Rabaix <thomas at rabaix dot net> Thomas Rabaix <thomas at rabaix dot net> 2006-12-24 06:17:51 PST
                                     Re: [propel-dev] Re: News about NestedSet support in Propel ? Eric Fredj <eofredj at gmail dot com> Eric Fredj <eofredj at gmail dot com> 2006-12-27 14:46:50 PST
                                         Re: [propel-dev] Re: News about NestedSet support in Propel ? Thomas Rabaix <thomas at rabaix dot net> Thomas Rabaix <thomas at rabaix dot net> 2006-12-28 07:31:08 PST
Messages per page: