optimization guidelines...

Ilan Berkner iberkner at gmail.com
Wed Jan 14 19:40:36 MSK 2009


We are running 10.  Is that to little or to much, how can you tell?

Below is a chart showing a snapshot of utilization which is what is killing
the CPU:

root at server2 [/etc]# ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
%CPU   PID USER     COMMAND
21.3 30097 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf
21.1 30095 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf
19.1 30078 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf
18.6 30091 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf
18.6 30080 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf
18.2 30087 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf
17.8 30083 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf
17.7 30093 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf
17.2 30076 spellcit /usr/local/bin/php-cgi --fpm --fpm-config
/etc/php-fpm.conf



On Wed, Jan 14, 2009 at 11:31 AM, Joe Aston <joe at joeaston.com> wrote:

> I seem to remember using PHP APC with FastCGI was a bad idea because
> php-cgi processes couldn't share the same cache - they all required their
> own unique caches.
>
> How many php-cgi processes are you running?
>
>
> On Wed, Jan 14, 2009 at 4:14 PM, Ilan Berkner <iberkner at gmail.com> wrote:
>
>> Does anyone have specific or "generic" optimization guidelines for running
>> Nginx in the following configuraiton?
>>
>> - Dedicated Nginx server (1)
>> - PHP FPM
>> - FastCgi
>>
>> - Dedicated DB Server
>> - MySQL
>>
>> Traffic on our site is increasing and I noticed that CPU utilization on
>> our Nginx server is going over 50%, primarily to php-cgi processes.  We are
>> optimizing php using APC.
>>
>> Any suggestions would be greatly appreciated (additional information can
>> be provided).
>>
>> Thanks
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090114/fc4b9f89/attachment.html>


More information about the nginx mailing list