Redmine is one I have been looking at and that looks most promising. It also makes for a rather easy migration from Trac.
For now, we are monitoring memory usage of Trac and gracefully restart it when it exceeds a certain threshold. That should do the trick.
|