1.15. Memcached stats command

发布时间 : 2025-10-25 13:33:44 UTC      

Page Views: 9 views

Memcached stats the command returns statistics such as PID (process number), version number, number of connections, and so on.

1.15.1. Syntax:

The stats basic syntax format of the command is as follows:

stats 

1.15.2. Example

In the following example, we used the stats command to output Memcachedservice 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 

A lot of status information is shown here, and each status item is explainedin detail below:

  • pid : memcache server process ID

  • uptime :Number of seconds the server has been running

  • time :The server’s current Unix timestamp

  • version : memcache version

  • pointer_size :Operating system pointer size

  • rusage_user :Process accumulates user time

  • rusage_system :Process accumulates system time

  • curr_connections :Current number of connections

  • total_connections total number of connections since Memcached was run

  • connection_structures number of connection structures assigned by Memcached

  • cmd_get : get number of command requests

  • cmd_set : set number of command requests

  • cmd_flush : flush number of command requests

  • get_hits : get number of command hits

  • get_misses : get number of misses of command

  • delete_misses : delete number of misses of command

  • delete_hits : delete number of command hits

  • incr_misses : incr number of misses of command

  • incr_hits : incr number of command hits

  • decr_misses : decr number of misses of command

  • decr_hits : decr number of command hits

  • cas_misses : cas number of misses of command

  • cas_hits : cas number of command hits

  • cas_badval :Number of times to use wiping

  • auth_cmds :The number of times the authentication command was processed

  • auth_errors :Number of authentication failures

  • bytes_read :Read the total number of bytes

  • bytes_written :Total number of bytes sent

  • limit_maxbytes :Total allocated memory size (bytes)

  • accepting_conns :Whether the server has reached the maximum connection (0lap1)

  • listen_disabled_num :Number of monitors that have failed

  • threads :Current number of threads

  • conn_yields :Number of active abandonments of connection operations

  • bytes :Number of bytes currently occupied by storage

  • curr_items :Total number of data currently stored

  • total_items :Total number of data stored since startup

  • evictions :Number of objects released by LRU

  • reclaimed :The number of expired data entries to store new data

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。