I am running on a dedicated setup with a dual core processor and 4gb ram.

My setup is as follows:

  • nginx - 1 worker process / 1024 child processes
  • php5-fpm - max_memory = 1024
  • varnish
  • 2 websites each with one store which in turn each have 2 stores

I am in a testing stage at the moment and the site is running quickly even when accessing pages not in the cache.

That being said the php5-fpm process is running almost constantly at 50% (a whole processor), even when there are no visitors. The admin panel runs quite slowly. The memory is only running at about 500mb

I am afraid that when the site goes live we will run into issues.

Is there a way that I can find out why the process is using so much cpu?

  • No choice unfortunately, site is for customers in china and therefore server must be in China. No specialised magento hosts here :( Commented Sep 23, 2014 at 10:19
  • Nope anything outside of the country (including hk) is throttled by the censors, there are major reliability and speed issues Commented Sep 23, 2014 at 10:37

1 Answer 1


Trace the process using strace. Replace XXX with the process ID.


strace -s 1024 -p XXX

It will show you everything the process is doing, then you can figure it out from there.

NB. You don't have enough RAM. You should have 8GB as an absolute minimum. RAM is cheap, don't skimp on it.

I am afraid that when the site goes live we will run into issues.

There's a lot to be said for managed Magento hosts that specialise in doing this. They can set up the environment properly (using tried and testing configs) and diagnose and fix any problems that might occur. It is a huge false economy to make a saving by DIYing your hosting.

  • If you had read the comments then you would see that managed hosting is not an option. Commented Nov 19, 2014 at 5:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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