minpengzuibang
minpengzuibang
2016-06-17 13:36

Memcached命中率低问题

公司有服务器跑了8个memcache服务,不同的memcache保存不同的数据,
这段时间老出问题,经常是跑个半天或者一两天就出问题,从memcache取不到数据,我
看了下memcache的运行情况,发现memcache里面有数据,但是取数据时命中率非常低,
信息如下:

STAT pid 2020
STAT uptime 1425
STAT time 1466168994
STAT version 1.4.4-14-g9c660c0
STAT pointer_size 32
STAT curr_connections 13
STAT total_connections 14
STAT connection_structures 14
STAT cmd_get 369
STAT cmd_set 136
STAT cmd_flush 258
STAT get_hits 42
STAT get_misses 327
STAT delete_misses 123
STAT delete_hits 3
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 auth_cmds 0
STAT auth_errors 0
STAT bytes_read 113248
STAT bytes_written 46901
STAT limit_maxbytes 536870912
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT bytes 30091
STAT curr_items 53
STAT total_items 135
STAT evictions 0
END
stats items
STAT items:1:number 1
STAT items:1:age 1451
STAT items:1:evicted 0
STAT items:1:evicted_nonzero 0
STAT items:1:evicted_time 0
STAT items:1:outofmemory 0
STAT items:1:tailrepairs 0
STAT items:3:number 7
STAT items:3:age 567
STAT items:3:evicted 0
STAT items:3:evicted_nonzero 0
STAT items:3:evicted_time 0
STAT items:3:outofmemory 0
STAT items:3:tailrepairs 0
STAT items:4:number 10
STAT items:4:age 492
STAT items:4:evicted 0
STAT items:4:evicted_nonzero 0
STAT items:4:evicted_time 0
STAT items:4:outofmemory 0
STAT items:4:tailrepairs 0
STAT items:5:number 2
STAT items:5:age 567
STAT items:5:evicted 0
STAT items:5:evicted_nonzero 0
STAT items:5:evicted_time 0
STAT items:5:outofmemory 0
STAT items:5:tailrepairs 0
STAT items:7:number 12
STAT items:7:age 492
STAT items:7:evicted 0
STAT items:7:evicted_nonzero 0
STAT items:7:evicted_time 0
STAT items:7:outofmemory 0
STAT items:7:tailrepairs 0
STAT items:8:number 1
STAT items:8:age 1343
STAT items:8:evicted 0
STAT items:8:evicted_nonzero 0
STAT items:8:evicted_time 0
STAT items:8:outofmemory 0
STAT items:8:tailrepairs 0
STAT items:10:number 1
STAT items:10:age 1451
STAT items:10:evicted 0
STAT items:10:evicted_nonzero 0
STAT items:10:evicted_time 0
STAT items:10:outofmemory 0
STAT items:10:tailrepairs 0
STAT items:12:number 17
STAT items:12:age 427
STAT items:12:evicted 0
STAT items:12:evicted_nonzero 0
STAT items:12:evicted_time 0
STAT items:12:outofmemory 0
STAT items:12:tailrepairs 0
STAT items:13:number 1
STAT items:13:age 945
STAT items:13:evicted 0
STAT items:13:evicted_nonzero 0
STAT items:13:evicted_time 0
STAT items:13:outofmemory 0
STAT items:13:tailrepairs 0
STAT items:14:number 1
STAT items:14:age 428
STAT items:14:evicted 0
STAT items:14:evicted_nonzero 0
STAT items:14:evicted_time 0
STAT items:14:outofmemory 0
STAT items:14:tailrepairs 0
END
求助各位大神帮分析分析,为什么跑着跑着就出现这样的问题,而且问题出现后,重启缓存不好使,为什么命中率低呢,有什么解决思路吗?我是第一次用memcache,谢谢

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐