Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a application that performs well in dev mode. However, a function that has a larger database query is causing the app to time out when run in either uwsgi or the browser to time out when run on mod_wsgi on apache. How should I go about trying to achieve reasonable performance in a production environment?

share|improve this question
So, does this larger database query "perform well" when it's run in the production environment in some way other than uwsgi or mod_wsgi (eg from the db commandline)? – DerfK Aug 21 '12 at 1:04
There are no timeouts in mod_wsgi. Do you mean the browser times out? – Graham Dumpleton Aug 21 '12 at 3:00
Yes the query does perform well. DerfK It usually returns in under .5 sec. Graham, I mis typed, the browser is the timeout in mod_wsgi. Uwsgi the time out appears server side. – Don Albrecht Aug 21 '12 at 10:47
To add some clarity to the test configuration. I'm running all three servers simultaneously on the same box. The server returns in <.5 sec – Don Albrecht Aug 21 '12 at 12:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.