Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 heavy traffic site that gets about +200 concurrent users and receives 4k+ uniques daily. My site seems to load slow for a few minutes and then fast for a few minutes and the pattern continues on.

I am running Ubuntu 10.04 LTS 32bit. It uses nginx as the webserver and php-fpm. I also have APC installed. My site uses Wordpress with caching plugin.

This is what my top looks like

This is nginx conf

This is php-fpm conf

This is mysql conf

Can anyone help me optimize to make the site stable? If you think my configurations are alright then do you think it's the host's side that is at fault for the instability?

share|improve this question
can this be moved? – Ruriko Dec 19 '12 at 4:48
Flag was noted but mod declined to move – Ringtail Dec 19 '12 at 23:56

Something similar happened to me. May be it is a problem of "slow questions". That is, questions to the database that imply searching or filtering by unindexed fields, huge joins or something like that.

May be you need to optimize your database design. In my case, after some minor changes, my Intel Atom based server has passed from a load of about 0.9 to a load of about 0.1 (serving 20k ~ 25k pages a day).

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.