Hi,
My Django application uses memcached via cmemcache. An issue sprung up when I was trying to monitor its usage:
I tried to access stats memcached provides through both Django and cmemcache:
django:
from django.core.cache import cache
cache._cache.get_stats()
[[email protected]] mcm_server_stats():3027: unknown stat variable: pointer_size
cmemcache:
import cmemcache
client=cmemcache.Client(['127.0.0.1:62656',])
client.get_stats()
[[email protected]] mcm_server_stats():3027: unknown stat variable: pointer_size
I can get nothing more than a warning. However, memcached itself provides stats without problems:
telnet 127.0.0.1 62656
stats
...
The web page of cmemcache mentions that "libmemcache-1.4.0.rc2 is not compatible with memcached 1.2.1, this results in get_stats returning no stats". The app is running on Debian. memcached's version is 1.2.2. I have no idea if there is still an incompatibility problem.
Is there anyone who has encountered this issue and has a solution?