On 09 Oct 2005, Alvaro Lopez Ortega wrote:
> >         I don't recall if I mentioned the problem with certain
> > threads going wild with the CPU and it may even be related to the
> > symlink bug.  But if you want any more information on that, I can
> > most likely reproduce the problem with 0.4.26.  I had written a
> > script to check for individual thread CPU usage previously so I
> > could restart Cherokee when this happened as subsequent requests
> > (probably the ones handed off to these certain pegged threads) would
> > just timeout and not return any data.
> 
>   Do you know if that problem occurs only with those broken dirlist
>   requests?
> 
>   I have not detected that problem before, and it does not make sense
>   for me if it only happens on that situation. :-?

        I'm not sure if the broken symlink/directory listing
problem was ultimately causing this issue or not.  There wasn't a
sure fire way for me to get a thread (and even multiple threads
at times) to start eating up CPU time.  It simply happened often
enough (multiple times a day and sometimes multiple times an
hour) that I wrote a cron script to look for it and restart
Cherokee when necessary.

        I can test 0.4.27 though to see if the problem has
disappeared as soon as it's released and Gunnar gets it packaged
for Debian.  I can even post the script I was using to check for
the runaway threads.  I was grepping for SleepAVG in /proc/`cat
/var/run/cherokee.pid`/task/*/status and restarting whenever the
SleepAVG time was 0 or 1 or something.  When I checked the hung
processes by hand initially, usually several threads would be
sitting at 0%.  So yeah, not sure what was happening exactly, but
it would definitely cause Cherokee to crap on future requests.

-- 
Mark Nipper                                                e-contacts:
832 Tanglewood Drive                                [EMAIL PROTECTED]
Bryan, Texas 77802-4013                     http://nipsy.bitgnome.net/
(979)575-3193                      AIM/Yahoo: texasnipsy ICQ: 66971617

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GG/IT d- s++:+ a- C++$ UBL++++$ P--->+++ L+++$ !E---
W++(--) N+ o K++ w(---) O++ M V(--) PS+++(+) PE(--)
Y+ PGP t+ 5 X R tv b+++@ DI+(++) D+ G e h r++ y+(**)
------END GEEK CODE BLOCK------

---begin random quote of the moment---
"Well, if we told you how we did it, then it very well wouldn't
be unbreakable, would it?  You need to trust us with your data.
These are not the backdoors you are looking for."
 -- random /. quote
----end random quote of the moment----
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to