YouTip LogoYouTip

Memcached Stats

The Memcached stats command is used to return statistical information such as PID (process ID), version number, connection count, etc. ### Syntax: The basic syntax format for the stats command is as follows: stats ### Example In the following example, we use the stats command to output Memcached server 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 1END This displays a lot of status information. Below is a detailed explanation of each status item: * **pid**: Memcache server process ID * **uptime**: Number of seconds the server has been running * **time**: Current Unix timestamp of the server * **version**: Memcache version * **pointer_size**: Operating system pointer size * **rusage_user**: Accumulated user time for the process * **rusage_system**: Accumulated system time for the process * **curr_connections**: Current number of connections * **total_connections**: Total number of connections since Memcached started * **connection_structures**: Number of connection structures allocated by Memcached * **cmd_get**: Number of get command requests * **cmd_set**: Number of set command requests * **cmd_flush**: Number of flush command requests * **get_hits**: Number of get command hits * **get_misses**: Number of get command misses * **delete_misses**: Number of delete command misses * **delete_hits**: Number of delete command hits * **incr_misses**: Number of incr command misses * **incr_hits**: Number of incr command hits * **decr_misses**: Number of decr command misses * **decr_hits**: Number of decr command hits * **cas_misses**: Number of cas command misses * **cas_hits**: Number of cas command hits * **cas_badval**: Number of cas bad values * **auth_cmds**: Number of authentication commands processed * **auth_errors**: Number of authentication failures * **bytes_read**: Total bytes read * **bytes_written**: Total bytes sent * **limit_maxbytes**: Total allocated memory size (bytes) * **accepting_conns**: Whether the server has reached the maximum connections (0/1) * **listen_disabled_num**: Number of disabled listeners * **threads**: Current number of threads * **conn_yields**: Number of connection operations voluntarily yielded * **bytes**: Current number of bytes stored * **curr_items**: Current total number of stored items * **total_items**: Total number of stored items since startup * **evictions**: Number of LRU evicted objects * **reclaimed**: Number of expired data entries used to store new data
← Php ImagecolorexactMemcached Delete Key β†’