Hello,

Please, can somebody help me with a tricky problem?

I installed Trac 10.4 with python 2.5, SVN 1.4.5, integrated with
Apache 2.4 via CGI.

Everything works fine if I do not send there concurrent requests. But
if several users are working with it concurrently, or even if I click
the pages heavily from several browser instances, trac gets blocked
after a while.

I can see from process listing that there are a plenty of python
processes that hang there and block web server threads. Simply, the
CGI script sometimes gets stuck, a web server thread is blocked, and
after some time the server runs out of threads and can not handle new
requests.

If I just restart apache, it usually does not help, because some trac
process had acquired lock to SVN. I need to run "svnadmin recover" and
then start apache again.

I noticed that in the apache error log, there are a plenty of these
messages:
[Mon Dec 03 11:41:35 2007] [error] [client 89.102.199.99] Exception
exceptions.RuntimeError: 'generator ignored GeneratorExit' in
<generator object at 0x7faad32c> ignored, referer: 
https://myserver:444/trac/wiki

I do not know much about Python, now I just made a brief search on the
web, and found that GeneratorExit was introduced to generators in
python 2.5 and is always thrown from the yield statement when the
generator is closed or garbage collected.

So, my theory is that some code that does not expect this exception
then fails to do cleanup and leaves SVN locked.

However, there are tens of yield statements in the trac core and one
has to be an expert to know which one to fix and how.

Does anybody have any suggestions please?

Note: I tried this fix http://trac.edgewall.org/ticket/5339 and it did
not help.

Thank you in advance for any help,

Jan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to