Memcache :: set () broken pipe

In general, Memcache works ... but my log has many entries in this:

Memcache :: set () [memcache.set]: send from 8192 bytes with error = 32 Broken pipe

(number of byte changes)

PHP5.3, Memcache class (v2.2.5 - latest stable version )

What is a broken pipe, why is it so much, and can it be improved?

+3
source share
3 answers

. Memcached . , MySQL. http://downloads.mysql.com/docs/mysql-memcached-en.pdf

, , :

  • ulimit ,
  • (, duh!)

, . , , ( -vv verbose, , ascii ). , , .

, , , telnet.

STAT accepting_conns 1
STAT listen_disabled_num 0

listen disabled_num 0, . , memcached .

Memcached, PHP, :

$this->m = new Memcached();
$this->m->setOption(Memcached::OPT_TCP_NODELAY, true);
$this->m->setOption(Memcached::OPT_LIBKETAMA_COMPATIBLE, true);
$this->m->setOption(Memcached::OPT_SERIALIZER, Memcached::SERIALIZER_IGBINARY);

, , - , memcached (, memcached.sess_lock_wait memcached.ini, . php -i|grep memcached ).

!

+1

, getextendedstats()

Notice: Memcache::getextendedstats(): send of 9 bytes failed with errno=32 Broken pipe in /usr/local/zend/share/ZendFramework/library/Zend/Cache/Backend/Memcached.php on line 382

, . http://unix.derkeiler.com/Newsgroups/comp.unix.programmer/2006-02/msg00348.html

, memcached , memcached , , .

, .

0

Generally speaking, when I see Broken Pipe errors, this happens at an extremely high load. Is this the matter with you? In some cases, simply adjusting the settings may solve the problem. If you allow more connections to something than something that can handle it, you'll often get an interrupt error message.

0
source

Source: https://habr.com/ru/post/1764804/


All Articles