On Mon, 29 Jul 2013 15:05:55 +0300
greenh <gre...@gmail.com> wrote:

> Добрый день
> Сломал уже всю голову, куда смотреть дальше не знаю
> Имеется сервер, на котором настроенна связка nginx+php-fpm+memcache
> периодически (в последнее время с ростом трафа все чаще и чаще)
> memcache "залипает" и в логах пхп появляется вот такое
> 
> [29-Jul-2013 12:04:59 UTC] PHP Warning:  Memcache::connect() [<a
> href='memcache.connect'>memcache.connect</a>]: Can't connect to
> localhost:11211, Operation timed out (60) in
> /home/client//classes/Cache.php on line 51
> 
> при этом
> 
> nw10# netstat -an | grep 11211 | grep ESTA | wc -l
>      400
> 
> в результате пхп тормозит, очереди растут и все встает раком
> 

netstat -Lan

> # uname -a
> FreeBSD nw10 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Wed Oct 24
> 13:44:32 MSK 2012     root@nw10:/usr/obj/usr/src/sys/GREENH  amd64
> 
> # netstat -m
> 46570/227480/274050 mbufs in use (current/cache/total)
> 20366/24568/44934/862144 mbuf clusters in use
> (current/cache/total/max) 20366/24435 mbuf+clusters out of packet
> secondary zone in use (current/cache)
> 3080/18980/22060/128000 4k (page size) jumbo clusters in use
> (current/cache/total/max)
> 0/0/0/6400 9k jumbo clusters in use (current/cache/total/max)
> 0/0/0/3200 16k jumbo clusters in use (current/cache/total/max)
> 64694K/181926K/246620K bytes allocated to network
> (current/cache/total) 0/0/0 requests for mbufs denied
> (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters
> denied (4k/9k/16k) 0/0/0 sfbufs in use (current/peak/max)
> 0 requests for sfbufs denied
> 0 requests for sfbufs delayed
> 680638 requests for I/O initiated by sendfile
> 0 calls to protocol drain routines



-- 
wbr, tiger

Ответить