tags:

views:

482

answers:

2

Really weird one going on here. Recently, my memcached instance basically stopped setting keys and data. Like 99% of things just silently fail, when before, completely worked before.

Is there any way to fix this guys? I try setting a key named 'a' with the data 'test', and it still just fails and doesn't set.

It has been working for months but now suddenly not.

I've restarted the daemon, I've separated it into chunks instead of one big slab. All these things, and only a tiny amount of the data actually gets set.

I've setup a log with the command

memcached -d -m 3072 -l localhost -p 11211 -u nobody -v >> /var/log/memcached.log 2>&1

But it just remains empty. Anything wrong with the above?

Help guys! :)

A: 

You may not have broken anything.

Try telneting to the your memcache client from the machines that access memcache

Execute the following

$telnet [insert hostname] 11211

status

^]exit

The ^] is escape and then ] to quit the telnet connection. You can set and get variables this way as well

I suspect, that the configuration may be broken, or the a firewall may have been put in place.

-daniel

Daniel
A: 

Assuming user nobody has write permissions to /tmp, try the following, noting the position of 2

memcached -d -m 3072 -l localhost -p 11211 -u nobody -v 2>>/tmp/memcached.log

Frank Daley