ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: помогите разобраться с загрузкой nginx + php_fmp



пускаем просто php-fpm
без нагрузки

[root@mx1]/usr/local/etc: ps aux|egrep 'php'|wc -l
      16

[root@mx1]/usr/local/etc: ps ax -o pid,ppid,user,%cpu,vsz,wchan,command
| egrep '(php|PID)'
  PID  PPID USER    %CPU   VSZ WCHAN  COMMAND
36522     1 root     0.0 33980 kqread /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36523 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36524 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36525 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36526 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36527 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36528 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36529 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36530 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36531 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36532 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36533 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36534 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36535 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36536 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36537 36522 www      0.0 33976 accept /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
[root@mx1]/usr/local/etc: 

это запущен так сказать в чистом виде.

запускаем nginx

[root@mx1]/usr/local/etc: ngps
  PID  PPID USER    %CPU   VSZ WCHAN  COMMAND
36646 95750 www      0.0  5480 kqread nginx: worker process (nginx)
36647 95750 www      0.0  4456 kqread nginx: worker process (nginx)
36648 95750 www      0.0  4456 kqread nginx: worker process (nginx)
36649 95750 www      0.0  4456 kqread nginx: worker process (nginx)
95750     1 root     0.0  4456 pause  nginx: master
process /usr/local/sbin/nginx
36688 36414 root     0.0   388 -      egrep (nginx|PID)


[root@mx1]/usr/local/etc: ps ax -o pid,ppid,user,%cpu,vsz,wchan,command
| egrep '(php|PID)'
  PID  PPID USER    %CPU   VSZ WCHAN  COMMAND
36522     1 root     0.0 33980 kqread /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36523 36522 www      5.1 37048 -      /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36524 36522 www      4.4 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36525 36522 www      4.9 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36526 36522 www      5.2 42168 -      /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36527 36522 www      4.7 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36528 36522 www      5.0 42168 -      /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36529 36522 www      4.4 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36530 36522 www      4.9 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36531 36522 www      4.9 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36532 36522 www      5.0 40120 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36533 36522 www      5.1 40120 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36534 36522 www      4.5 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36535 36522 www      5.1 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36536 36522 www      4.7 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36537 36522 www      4.7 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
36681 36414 root     0.0  1632 -      egrep (php|PID)

[root@mx1]/usr/local/etc: ps aux | egrep 'php' | wc -l
      17
[root@mx1]/usr/local/etc: 


last pid: 36776;  load averages: 12.69,  9.18,  4.98  
214 processes: 8 running, 206 sleeping
CPU states: 78.4% user,  0.0% nice, 19.8% system,  1.8% interrupt,  0.0%
idle
Mem: 748M Active, 840M Inact, 245M Wired, 51M Cache, 112M Buf, 86M Free
Swap: 3998M Total, 64M Used, 3934M Free, 1% Inuse

  PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU
COMMAND
  763 mysql     107 106    0   389M   178M ucond  1 289:57 54.83% mysqld
36534 www         1   4    0 39096K 21468K sbwait 0   0:20  6.79%
php-cgi
36537 www         1   4    0 39096K 23276K sbwait 1   0:19  6.45%
php-cgi
36533 www         1 110    0 38072K 20336K RUN    0   0:20  6.35%
php-cgi
36532 www         1 110    0 42168K 24468K RUN    1   0:20  6.25%
php-cgi
36524 www         1   4    0 39096K 23052K sbwait 1   0:20  6.01%
php-cgi
36523 www         1 110    0 41144K 21696K RUN    0   0:20  6.01%
php-cgi
36525 www         1 109    0 40120K 21964K RUN    0   0:20  5.96%
php-cgi
36527 www         1   4    0 38072K 20872K sbwait 0   0:20  5.96%
php-cgi
36528 www         1   4    0 39096K 21060K sbwait 1   0:19  5.96%
php-cgi
36536 www         1   4    0 38072K 20340K sbwait 0   0:20  5.62%
php-cgi
36526 www         1   4    0 39096K 20752K sbwait 0   0:20  5.47%
php-cgi
36535 www         1   4    0 39096K 21852K sbwait 1   0:18  5.37%
php-cgi
36531 www         1   4    0 38072K 20568K sbwait 0   0:20  5.08%
php-cgi
36530 www         1   4    0 38072K 20260K sbwait 1   0:19  4.98%
php-cgi
36529 www         1   4    0 38072K 19808K sbwait 1   0:19  4.74%
php-cgi
14236 www         1  99    0 47560K 38176K select 1   7:19  1.22% httpd

все. цпу в 0-ях

В Вто, 11/11/2008 в 19:51 +0300, Dmitry пишет:
> ps aux|egrep 'php'|wc -l
-- 
Regards,
Vit

-=> http://www.sat-expert.com 
-=> ICQ 777874
-=> Skype: lazy-seal
-=> My PGP pub keys http://www.sat-expert.com/vvs-pub.asc






 




Copyright © Lexa Software, 1996-2009.