All trac-served pages are generally unusably slow

Bug #898786 reported by Jean-Paul Calderone
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Twisted Website
Fix Released
Wishlist
Unassigned

Bug Description

Page load times for content served by trac ranges from a couple seconds to a couple minutes. This frequently makes the site totally unusable. We really need to get all page load times down to single digit seconds at least (ideally much faster). These kind of performance improvements can be somewhat open ended, but the issue to resolve immediately is the (apparent) significant regression to multi-minute page load times.

This may be related to the newly deployed site changes, though perhaps only very tangentially (like an uptick in spidering due to the changes, or hitting the hockey stick due to a few new required requests per page load).

Without really understanding the underlying cause, one thing to try is to get all static content served without going through the trac/wsgi pipeline. One obvious candidate for this is the sponsor logos on the front page, or more generally anything beneath </trac/raw-attachments/>. That hierarchy appears simple and purely static. A static.File carefully placed in trac_server.tac/external.py could serve these files without involving trac, speeding them up and reducing the load on trac (presumably speeding up other things).

Glyph Lefkowitz (glyph)
Changed in twisted-website:
importance: Undecided → High
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

http://trac.edgewall.org/changeset/6593 seems to have been responsible for the majority of the slowness. The gc.collect() call is now disabled in our deployment. Performance is clearly improved, though the site still wouldn't meet anyone's definition of "fast".

Changed in twisted-website:
importance: High → Wishlist
Revision history for this message
Tom Prince (tom.prince) wrote :

/trac/raw-attachments/ has been served by twisted for some time.

We have moved to a new server that seems to have addressed the speed issues.

Changed in twisted-website:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.