memcached相关技术网站

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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值