Answer the question
In order to leave comments, you need to log in
PHP sometimes fails to connect to Memcache and Sphinx?
PHP sometimes fails to connect or takes a long time to connect to the MemCache and Sphinx daemon
Everything is on the same server and connecting to 127.0.0.1
Memcache gives an error:
Warning: Memcache::connect() [memcache.connect]: Can't connect to 127.0.0.1 :11211, Connection timed out (110)
The problem occurs approximately every two minutes.
OS: Centos 6
What could be the reason?
Answer the question
In order to leave comments, you need to log in
the memcached daemon has a switch
-c Use max simultaneous connections; the default is 1024.
Most likely it rests on this
netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question