Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I successfully installed nging+php5-fpm. Everything works fine but on the same machine server load is higher than with Apache2+php.

With Apache2+php I was running 2 websites and average server load was 0.1...0.2...0.3 and at peaktimes about 0.8-0.9.

With nginx+php5 fpm I am running only one busy website (the same as with apache) but the load is higher - 0.3... 0.6... 0.7, and it's not a peaktime.

Is it possible to optimize something (php5-fpm or nginx)? Should I change some values in nginx.conf file like worker_processes (is set to 4 niow) or worker_connections (is set to 768 now)? Should I change anything in php5-fpm config. file? When I run top, I see that the most cpu consuming processes are php5-fpm.

My server details: AMD Opteron™ 3280 Octo-Core 8x 2.4 GHz 16 GB RAM

Thank you.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

you are doing well, LA 0.7 is pretty low for 8-core processor. You server should perform without slowdown until you have LA higher then number of cores.

share|improve this answer
    
yes, I know 0.7 is pretty low and not a problem yet. I wonder why the load is higher than with Apache+php. I installed nginx+php5-fpm because I have heard that it's faster and will reduce the load. But the load is even higher. –  user1406271 May 22 '12 at 11:23
    
nginx+php5-fpm is not significantly faster or slower than apache+modphp. But it do consume much less memory per process. –  DukeLion May 22 '12 at 11:29
    
so, changing settings in nginx.conf or php5-fpm config. files is senseless? –  user1406271 May 22 '12 at 11:51
    
It's impossible to say something with information you have provided. –  DukeLion May 22 '12 at 11:55

Your Answer

 
discard

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.