Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question

closed as not a real question by womble, Scott Pack, John Gardeniers, Ward, mdpc Nov 12 '12 at 17:43

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

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

share|improve this answer

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.

share|improve this answer

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).

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.