помогите разобраться с загрузкой nginx + php_fmp
vit slipchenko
vvs at vs.kiev.ua
Wed Nov 12 13:57:13 MSK 2008
пожалуйста
[root at mx1]/usr/local/etc: ps ax -o pid,ppid,user,%cpu,vsz,wchan,command
| egrep '(php|PID)'
PID PPID USER %CPU VSZ WCHAN COMMAND
38487 1 root 0.0 33980 kqread /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38488 38487 www 3.5 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38489 38487 www 3.4 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38490 38487 www 4.3 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38491 38487 www 2.1 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38492 38487 www 3.8 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38493 38487 www 3.0 40120 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38494 38487 www 4.0 43192 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38495 38487 www 1.9 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38496 38487 www 4.1 43192 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38497 38487 www 2.7 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38498 38487 www 2.6 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38499 38487 www 3.7 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38500 38487 www 3.1 38072 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38501 38487 www 3.8 40120 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
38502 38487 www 3.0 39096 sbwait /usr/local/bin/php-cgi --fpm
--fpm-config /usr/local/etc/php-fpm.conf
[root at mx1]/usr/local/etc: gdb /usr/local/bin/php-cgi 38487
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...
Attaching to program: /usr/local/bin/php-cgi, process 38487
Reading symbols from /lib/libcrypt.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libm.so.5...(no debugging symbols
found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libz.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols
found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/ioncube/ioncube_loader_fre_5.2.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/ioncube/ioncube_loader_fre_5.2.so
Reading symbols from /usr/local/lib/php/20060613/eaccelerator.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/eaccelerator.so
Reading symbols from /usr/local/lib/php/20060613/filter.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/filter.so
Reading symbols from /usr/local/lib/libpcre.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from /usr/local/lib/php/20060613/hash.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/hash.so
Reading symbols from /usr/local/lib/php/20060613/ctype.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/ctype.so
Reading symbols from /usr/local/lib/php/20060613/curl.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/curl.so
Reading symbols from /usr/local/lib/libcurl.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libcurl.so.4
Reading symbols from /usr/local/lib/libssl.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libssl.so.5
Reading symbols from /usr/local/lib/libcrypto.so.5...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libcrypto.so.5
Reading symbols from /lib/libthr.so.3...(no debugging symbols
found)...done.
Error while reading shared library symbols:
Cannot get thread info: invalid key
Reading symbols from /usr/local/lib/php/20060613/dba.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/dba.so
Reading symbols from /usr/local/lib/php/20060613/pcre.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/pcre.so
Reading symbols from /usr/local/lib/php/20060613/simplexml.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/simplexml.so
Reading symbols from /usr/local/lib/php/20060613/spl.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/spl.so
Reading symbols from /usr/local/lib/php/20060613/dom.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/dom.so
Reading symbols from /usr/local/lib/php/20060613/ftp.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/ftp.so
Reading symbols from /usr/local/lib/php/20060613/gd.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/gd.so
Reading symbols from /usr/local/lib/libt1.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libt1.so.5
Reading symbols from /usr/local/lib/libfreetype.so.9...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/local/lib/libX11.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libX11.so.6
Reading symbols from /usr/local/lib/libXpm.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libXpm.so.4
Reading symbols from /usr/local/lib/libpng.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/libjpeg.so.9...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libXau.so.6
Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libXdmcp.so.6
Reading symbols from /usr/lib/librpcsvc.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/librpcsvc.so.4
Reading symbols from /usr/local/lib/php/20060613/gettext.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/gettext.so
Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/php/20060613/iconv.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/iconv.so
Reading symbols from /usr/local/lib/php/20060613/mcrypt.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/mcrypt.so
Reading symbols from /usr/local/lib/libmcrypt.so.8...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libmcrypt.so.8
Reading symbols from /usr/local/lib/libltdl.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libltdl.so.4
Reading symbols from /usr/local/lib/php/20060613/mhash.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/mhash.so
Reading symbols from /usr/local/lib/libmhash.so.2...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libmhash.so.2
Reading symbols from /usr/local/lib/php/20060613/mysql.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/mysql.so
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.15...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.15
Reading symbols from /usr/local/lib/php/20060613/mysqli.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/mysqli.so
Reading symbols from /usr/local/lib/php/20060613/pdo.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/pdo.so
Reading symbols from /usr/local/lib/php/20060613/posix.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/posix.so
Reading symbols from /usr/local/lib/php/20060613/session.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/session.so
Reading symbols from /usr/local/lib/php/20060613/snmp.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/snmp.so
Reading symbols from /usr/local/lib/libnetsnmp.so.16...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libnetsnmp.so.16
Reading symbols from /usr/lib/libelf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libelf.so.1
Reading symbols from /lib/libkvm.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libkvm.so.4
Reading symbols from /lib/libdevstat.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/libdevstat.so.6
Reading symbols from /usr/local/lib/php/20060613/sockets.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/sockets.so
Reading symbols from /usr/local/lib/php/20060613/tokenizer.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/tokenizer.so
Reading symbols from /usr/local/lib/php/20060613/xml.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/xml.so
Reading symbols from /usr/local/lib/php/20060613/xmlreader.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/xmlreader.so
Reading symbols from /usr/local/lib/php/20060613/xmlwriter.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/xmlwriter.so
Reading symbols from /usr/local/lib/php/20060613/zip.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/zip.so
Reading symbols from /usr/local/lib/php/20060613/zlib.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/zlib.so
Reading symbols from /usr/local/lib/php/20060613/memcache.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/memcache.so
Reading symbols from /usr/local/lib/php/20060613/sqlite.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/sqlite.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
0x285870db in kevent () from /lib/libc.so.7
(gdb)
В Срд, 12/11/2008 в 13:22 +0300, Andrei Nigmatulin пишет:
> On Wednesday 12 November 2008 12:57, vit slipchenko wrote:
> > 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
>
> Было бы интересно посмотреть backtrace php-cgi процесса, висящего в sbwait:
>
> $ gdb /usr/local/bin/php-cgi <pid>
> ...
> (gdb) where
>
>
>
--
Regards,
Vit
-=> http://www.sat-expert.com
-=> ICQ 777874
-=> Skype: lazy-seal
-=> My PGP pub keys http://www.sat-expert.com/vvs-pub.asc
More information about the nginx-ru
mailing list