siege [error] socket: connection refused

2015-09-26 od romanb benchmark, hacks, linux

If you testing stuff with siege and it starts throwing socket: connection refused errors first check if you did not run out of ports for outgoing connections, then use this commands:

sysctl net.ipv4.tcp_tw_reuse=1
sysctl net.ipv4.tcp_tw_recycle=1

Simplest memcached "top"

2013-03-12 od romanb hacks, linux

Simplest memcached "top" consist of watch, echo and netcat:

watch 'echo -e "stats\nquit\n" |nc 11211'