How do you know if memcached is being used? Server has mysql query cache on and I believe it also has memcahced installed, but how do I know if memcached is being used?


3 Answers 3


memcache and sql query cache are independent of each other and both can be used without impacting each other. memcache needs to be installed as a separate server process and cache needs to be managed programatically.

  1. Check if memcache is listening on the port on which it was installed:

netstat -ap | grep selected_port

If it is listening on that port, means it has started

  1. To check if it is setting the cache or getting from cache, you start in verbose mode manually (use the following command) and observe for sometime for any data being cached or not:

memcached -vv


memcached has its own status screen where you can see all kind of information about it. You can also see memcached stats from command line with echo stats | nc localhost 11211 (just replace localhost and 11211 with your memcached server and the port memcached is listening at).


Memcached will be used if some component of your application stack has been configured to use it. The MySQL query cache is completely unrelated to memcached.

Not the answer you're looking for? Browse other questions tagged .