May 24, 2012

Post: A quick way to get memcached status

There are all sorts of different interfaces to memcached, but you don’t need any of them to make … threads 4 END Here’s an easy “top” emulator for memcached: watch “echo stats | nc 127.0.0.1 11211″ If… like this, if you must do it via PHP: watch ‘php -r ‘”‘”‘$m=new Memcache;$m->connect(“127.0.0.1″, 11211);print…

Post: Debugging sleeping connections with MySQL

… process have. Here you can see it has couple of memcached connections. Few MySQL connections (to the same host, which if… trace originated from php stream functions not from libmysql or memcache.so, which means it is not MySQL or memcache connections leaving last…. Yet another great tool which you can use is server-status if you’re running apache. This way you will see…

Post: Worse than DDOS

…match your application needs. If you’re using PHP functions make sure default_socket_timeout has …offending processes you can find from apache “server-status” will be just waiting on file to be …looking for. Things are much easier with say memcached session storage – this does not cause any locks…