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?
Thanks!
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communitymemcache 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.
netstat -ap | grep selected_port
If it is listening on that port, means it has started
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.