On Sun, Oct 9, 2011 at 7:40 PM, Rotem Tamir <[email protected]> wrote: > Hi all > > I'm currently moving a TG2.1 app to production and have been doing > some load testing. > > I have 10 Instances of the app running behind an nginx server using > reverse proxy technique. > > When I reach about 50-60 concurrent users the application becomes > incredibly slow, responding sometimes at 40-50 seconds response time. >
- Check that you have enough available connections to the database (both the db server and sqlalchemy have a maximum pool size usually) - If you are using paster, don't use paster - Prefer spawning multiple processes and less threads if you are deploying with mod_wsgi and have enough ram - Disable template reloading in app_cfg.py - Move the static files to nginx, they consume slots that can be used by the dynamic content related requests - 40-50 seconds is HUGE, it is probably not related to tg app itself, but some deployment issues or db issues. -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

