Memcached stats command
Memcached stats command returns statistical information such as PID (process ID), the version number, the number of connections and the like.
grammar:
The basic stats command syntax is as follows:
stats
Examples
In the following example, we use the stats command output Memcached service information.
stats STAT pid 1162 STAT uptime 5022 STAT time 1415208270 STAT version 1.4.14 STAT libevent 2.0.19-stable STAT pointer_size 64 STAT rusage_user 0.096006 STAT rusage_system 0.152009 STAT curr_connections 5 STAT total_connections 6 STAT connection_structures 6 STAT reserved_fds 20 STAT cmd_get 6 STAT cmd_set 4 STAT cmd_flush 0 STAT cmd_touch 0 STAT get_hits 4 STAT get_misses 2 STAT delete_misses 1 STAT delete_hits 1 STAT incr_misses 2 STAT incr_hits 1 STAT decr_misses 0 STAT decr_hits 1 STAT cas_misses 0 STAT cas_hits 0 STAT cas_badval 0 STAT touch_hits 0 STAT touch_misses 0 STAT auth_cmds 0 STAT auth_errors 0 STAT bytes_read 262 STAT bytes_written 313 STAT limit_maxbytes 67108864 STAT accepting_conns 1 STAT listen_disabled_num 0 STAT threads 4 STAT conn_yields 0 STAT hash_power_level 16 STAT hash_bytes 524288 STAT hash_is_expanding 0 STAT expired_unfetched 1 STAT evicted_unfetched 0 STAT bytes 142 STAT curr_items 2 STAT total_items 6 STAT evictions 0 STAT reclaimed 1 END
This shows a lot of status information, detailed explanations of each status item below:
- pid: memcache server process ID
- uptime: server is running Seconds
- time: Current server Unix timestamp
- version: memcache version
- pointer_size: operating system pointer size
- rusage_user: Process cumulative user time
- rusage_system: cumulative process system time
- curr_connections: The current number of connections
- total_connections: Since the total number of connections running Memcached
- connection_structures: The number of connections Memcached distribution structure
- cmd_get: get command number of requests
- cmd_set: set number command request
- cmd_flush: flush command request number
- get_hits: get command of hits
- get_misses: get command misses
- delete_misses: delete command misses
- delete_hits: delete command of hits
- incr_misses: incr command misses
- incr_hits: incr command of hits
- decr_misses: decr command misses
- decr_hits: decr command of hits
- cas_misses: cas command misses
- cas_hits: cas command of hits
- cas_badval: Use wipe times
- auth_cmds: authentication command processing times
- auth_errors: the number of failed authentication
- bytes_read: total number of bytes read
- bytes_written: total number of bytes sent
- limit_maxbytes: The total size of allocated memory (in bytes)
- accepting_conns: server reached the maximum connections (0/1)
- listen_disabled_num: Number of monitor failure
- threads: Current number of threads
- conn_yields: give up the number of join operations
- bytes: Number of bytes of memory currently occupied
- curr_items: The current total number of data storage
- Since the start of the total number of datastorage: total_items
- evictions: the number of objects LRU release
- The number of expired data entry to store newdata: reclaimed