Edgewall Software

Ticket #3788 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

Trac connection pool depletion when running multithreaded

Reported by: alberto@… Owned by: jonas
Priority: high Milestone:
Component: general Version: 0.10rc1
Severity: blocker Keywords:
Cc: alberto@…

Description

I have a trac mounted via WSGI in a multithreaded CherryPy? HTTP server and after a few dozen requests the db connections pool seems to get exhausted and Trac freezes up.

Other WSGI apps mounted on the same CP server suffer no lockup while Trac remains locked-up.

I've managed to reproduce both using sqlite and postgres backends.

This message from Trac gets on my server's log:

Exception exceptions.AssertionError: <exceptions.AssertionError instance at 0xa931db4c> in <bound method PooledConnection.__del__ of <trac.db.pool.PooledConnection object at 0xa936b76c>> ignored

Which I believe to be located here

I'm not too familiar with Trac's pool management to submit a patch ATM, sorry.

Attachments

Change History

Changed 2 years ago by mgood

  • status changed from new to closed
  • resolution set to duplicate

This is a duplicate of #3504 which should be fixed in the trunk now.

Changed 2 years ago by cboos

Please alberto, can you try to reproduce the issue with latest trunk, to be really sure that it's fixed now?

Changed 2 years ago by alberto

Upgraded to trunk and it survived 1000 requests in chunks of 50 concurrent requests so it surely seems fixed. Thanks! :)

Alberto

Changed 2 years ago by cboos

Great! Thank you very much for the feedback.

Add/Change #3788 (Trac connection pool depletion when running multithreaded)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.