admin avatar

Use the stats command to monitor memcached

🕙 by admin





Use the stats command to monitor memcached

Of course, it is also very convenient to use telnet to monitor memcached

telnet lcaohost:11211

I prefer to use the stats command to monitor memcached

echo "stats"|nc 127.0.0.1 11211

Shows as follows

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
STAT pid 758
STAT uptime 35017
STAT time 1653439473
STAT version 1.6.12
STAT libevent 2.1.12-stable
STAT pointer_size 64
STAT rusage_user 6.048980
STAT rusage_system 4.258726
STAT max_connections 1024
STAT curr_connections 1
STAT total_connections 84
STAT rejected_connections 0
STAT connection_structures 2
STAT response_obj_oom 0
STAT response_obj_count 1
STAT response_obj_bytes 65536
STAT read_buf_count 8
STAT read_buf_bytes 131072
STAT read_buf_bytes_free 49152
STAT read_buf_oom 0
STAT reserved_fds 20
STAT cmd_get 561
STAT cmd_set 180
STAT cmd_flush 14
STAT cmd_touch 0
STAT cmd_meta 0
STAT get_hits 383
STAT get_misses 178
STAT get_expired 0
STAT get_flushed 97
STAT delete_misses 2
STAT delete_hits 8
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
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 367426
STAT bytes_written 820192
STAT limit_maxbytes 67108864
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT time_in_listen_disabled_us 0
STAT threads 4
STAT conn_yields 0
STAT hash_power_level 16
STAT hash_bytes 524288
STAT hash_is_expanding 0
STAT slab_reassign_rescues 0
STAT slab_reassign_chunk_rescues 0
STAT slab_reassign_evictions_nomem 0
STAT slab_reassign_inline_reclaim 0
STAT slab_reassign_busy_items 0
STAT slab_reassign_busy_deletes 0
STAT slab_reassign_running 0
STAT slabs_moved 0
STAT lru_crawler_running 0
STAT lru_crawler_starts 34
STAT lru_maintainer_juggles 274387
STAT malloc_fails 0
STAT log_worker_dropped 0
STAT log_worker_written 0
STAT log_watcher_skipped 0
STAT log_watcher_sent 0
STAT log_watchers 0
STAT unexpected_napi_ids 0
STAT round_robin_fallback 0
STAT bytes 0
STAT curr_items 0
STAT total_items 180
STAT slab_global_page_pool 0
STAT expired_unfetched 21
STAT evicted_unfetched 0
STAT evicted_active 0
STAT evictions 0
STAT reclaimed 62
STAT crawler_reclaimed 0
STAT crawler_items_checked 389
STAT lrutail_reflocked 15
STAT moves_to_cold 250
STAT moves_to_warm 122
STAT moves_within_lru 80
STAT direct_reclaims 0
STAT lru_bumps_dropped 0

The following is an introduction to the corresponding memcached status information

  • pid: memcache server process ID
  • uptime: the number of seconds the server has been running
  • time: the current Unix timestamp of the server
  • version: memcache version
  • pointer_size: OS pointer size
  • rusage_user: cumulative user time of the process
  • rusage_system: cumulative system time of the process
  • curr_connections: the current number of connections
  • total_connections: The total number of connections since Memcached was running
  • connection_structures: The number of connection structures allocated by Memcached
  • cmd_get: the number of get command requests
  • cmd_set: the number of set command requests
  • cmd_flush: the number of flush command requests
  • get_hits: the number of hits of the get command
  • get_misses: Number of get command misses
  • delete_misses: number of misses for delete command
  • delete_hits: Number of hits of delete command
  • incr_misses: the number of incr command misses
  • incr_hits: the number of hits of the incr command
  • decr_misses: The number of misses of the decr command
  • decr_hits: The number of hits of the decr command
  • cas_misses: Number of cas command misses
  • cas_hits: The number of hits of the cas command
  • cas_badval: number of wipes used
  • auth_cmds: The number of authentication commands processed
  • auth_errors: number of authentication failures
  • bytes_read: total bytes read
  • bytes_written: total bytes sent
  • limit_maxbytes: total size of allocated memory (bytes)
  • accepting_conns: Whether the server has reached the maximum connection (0/1)
  • listen_disabled_num: Number of disabled listeners
  • threads: the current number of threads
  • conn_yields: The number of actively giving up connection operations
  • bytes: the number of bytes currently occupied by the storage
  • curr_items: the total number of data currently stored
  • total_items: total data stored since startup
  • evictions: the number of objects released by the LRU
  • reclaimed: Number of expired data entries to store new data




💘 相关文章

写一条评论

Based on Golang + fastHTTP + sdb | go1.18.3 Processed in 2ms