Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to monitor memcached statistics on windows?

What's the easiest method people have found to monitor memcached on Windows? One method I've tried, which works decently:

telnet into the memcached port (11211) and enter the "stats" command. You'll get back a listing like this:

stats
STAT pid 2816
STAT uptime 791
STAT time 1225918895
STAT version 1.2.1
STAT pointer_size 32
STAT curr_items 10
STAT total_items 10
STAT bytes 122931
STAT curr_connections 1
STAT total_connections 5
STAT connection_structures 4
STAT cmd_get 20
STAT cmd_set 10
STAT get_hits 0
STAT get_misses 20
STAT bytes_read 122986
STAT bytes_written 187
STAT limit_maxbytes 1073741824

Is there an easier way?

like image 472
Kalid Avatar asked Nov 05 '08 21:11

Kalid


People also ask

How do I check my Memcached data?

Get data using Java Application Consider that Memcached server is running on host 127.0. 0.1and port 11211. Here, we will use get() method to get data in Memcached server.

How do you calculate Memcached stats?

Using netcat This gives you extensive stats (uptime, version, HITS, MISSES, connections, evictions…) about the memcached daemon. If you wish to retrieve HITS in real-time, you can build upon this command and do the following. The number will then increase as soon as there's data coming in through the memcached daemon.

How do I check my memcache port?

Confirming Memcached Installation This command shows that Memcached is running on the default port 11211. To run Memcached server on a different port, execute the command given below. This command starts the server on the TCP port 11111 and listens on the UDP port 11111 as a daemon process.


1 Answers

The PHP Memcached module also includes a script that will display the stats in summary, and also graph form, as well as being able to view individual cached items. If you are already using PHP & memcache on windows, it's an almost drop-in solution.

like image 171
Alister Bulman Avatar answered Sep 18 '22 23:09

Alister Bulman