Ticket #3788 (closed defect: duplicate)
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
Note: See
TracTickets for help on using
tickets.


