[Zope] ZServer Must Be Continually Re-Started: my Method to
stop zope dead:
Tino Wildenhain
tino@wildenhain.de
Fri, 11 May 2001 14:13:29 +0200
Hi Chrises ;),
as far I can see from code, in http_server.py
there is code to clean up zombies after 30 mins
timeout but only on channel creation time.
If all threads are eaten up within 30 mins
there is no chance to initialize a new one and
so no chance to do the cleanup.
May be a maintenance-thread will help a bit?
Ok, this does not help on the python thread switcher
get stuck on external c functions problem.
Regards
Tino
--On Freitag, 11. Mai 2001 08:04 -0400 Chris McDonough
<chrism@digicool.com> wrote:
> Chris Withers wrote:
>>
>> Gilles Lavaux wrote:
>> >
>> > I am personally thinking that ONE of the problem is that there is no
>> > time-out on the Zserver socket, I think that if for some reason a
>> > request get stuck, the thread is never released. If you use all the
>> > thread pool, your server doesn't reply anymore.
>>
>> I'd second that...
>
> There evidently already is a timeout (according to Jim). I think it's
> set to 30 minutes. I'm not sure where it is. It's possible it needs to
> be lowered.
>
>> ChrisM: I cc'ed you on this because I have a hunch that it's something
>> along these lines that's causing the hangs I mentioned on zope-dev.
>> That said, would the python process usage drop down to nothing in the
>> above scenario?
>
> No... at least I don't think so... if you have a long-running method,
> and some joker reloads that method 5 times (because they think it'll
> speed things up), it will chew up five threads, and whatever processing
> is happening will be happening five times. It's likely that the Python
> process would be working hard in this scenario... unless of course the
> method was long-running because it was IO-bound instead of CPU-bound...
> did requestprofiler turn anything up for you?
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )