您的位置:首页 > 数据库 > Memcache

memcached相关技术网站

2015-08-12 16:46 661 查看
memcached 源码位置:https://github.com/memcached/memcached/blob/master/scripts/memcached-tool

火丁笔记 http://huoding.com/
http://blog.charlee.li/memcached-001/

http://blog.charlee.li/memcached-002/

http://blog.charlee.li/memcached-003/

http://blog.charlee.li/memcached-005/

twitter memcached

https://github.com/twitter/twemcache

Oracle上mysql文档关于memcached的用法介绍

https://docs.oracle.com/cd/E17952_01/refman-5.5-en/ha-memcached-faq.html

memcached 监控工具:phpMemCachedAdmin

http://www.kutukupret.com/2011/06/13/monitoring-and-debugging-memcached-server-using-phpmemcachedadmin/

http://unix.stackexchange.com/questions/117443/memcache-stats-reports-non-zero-curr-connections-but-lsof-shows-no-socket

stats settings

STAT maxbytes 0

STAT maxconns 10240

STAT tcpport 11212

STAT udpport 11212

STAT inter 109.105.112.146

STAT verbosity 0

STAT oldest 0

STAT evictions on

STAT domain_socket NULL

STAT umask 700

STAT growth_factor 1.25

STAT chunk_size 48

STAT num_threads 4

STAT num_threads_per_udp 4

STAT stat_key_prefix :

STAT detail_enabled no

STAT reqs_per_event 20

STAT cas_enabled yes

STAT tcp_backlog 1024

STAT binding_protocol auto-negotiate

STAT auth_enabled_sasl no

STAT item_size_max 1048576

STAT maxconns_fast no

STAT hashpower_init 0

STAT slab_reassign no

STAT slab_automove 0

监控memcached状态脚本:memcache源码里面,memcached-master\scripts\memcached-tool

watch -n 2 -e 'perl memcached-tool 109.105.112.146:11212 display'

watch -n 2 -e 'perl memcached-tool 109.105.112.146:11212'

watch -n 2 -e 'perl memcached-tool 109.105.112.146:11212 stats'

watch -n 2 -e 'perl memcached-tool 109.105.112.146:11212 settings'

watch -n 2 -e 'perl memcached-tool 109.105.112.146:11212 sizes'

watch -n 2 -e 'perl memcached-tool 109.105.112.146:11211 sizes'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11212 sizes'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211 sizes'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211 dump'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211 dump'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11212 sizes'

watch -n 2 -e 'perl memcached-tool 109.105.112.146:11212 sizes'

watch -n 2 -e 'perl memcached-tool 109.105.112.146:11212 dump'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11212 sizes'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211 sizes'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211 sizes'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211 stats'

watch -n 2 -e 'perl memcached-tool 127.0.0.1:11211 dump'

Every 2.0s: perl memcached-tool 127.0.0.1:11211 stats Wed Aug 12 17:34:43 2015

#127.0.0.1:11211 Field Value

accepting_conns 1

auth_cmds 0

auth_errors 0

bytes 7613

bytes_read 634449616

bytes_written 3382118946

cas_badval 0

cas_hits 0

cas_misses 0

cmd_flush 0

cmd_get 16636437

cmd_set 7744

cmd_touch 0

conn_yields 0

connection_structures 22

curr_connections 21

curr_items 23

decr_hits 0

decr_misses 0

delete_hits 584

delete_misses 22

evicted_unfetched 0

evictions 0

expired_unfetched 0

get_hits 16629316

get_misses 7121

hash_bytes 524288

hash_is_expanding 0

hash_power_level 16

incr_hits 0

incr_misses 0

libevent 2.0.21-stable

limit_maxbytes 67108864

listen_disabled_num 0

pid 1113

pointer_size 64

reclaimed 665

reserved_fds 20

rusage_system 283.876670

rusage_user 122.799991

threads 4

time 1439372083

total_connections 375

total_items 7744

touch_hits 0

touch_misses 0

uptime 85216

version 1.4.14 (Ubuntu)

Every 2.0s: perl memcached-tool 127.0.0.1:11211 sizes Wed Aug 12 17:35:21 2015

#127.0.0.1:11211 Size Count

160 2

224 1

384 20

Every 2.0s: perl memcached-tool 127.0.0.1:11211 Wed Aug 12 17:35:58 2015

# Item_Size Max_age Pages Count Full? Evicted Evict_Time OOM

3 152B 99s 1 2 yes 0 0 0

5 240B 34s 1 1 yes 0 0 0

7 384B 52s 1 20 yes 0 0 0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: