2010. 11. 21.

how to check memory usage of memcached

1. 메모리 사용량 체크

# ps -u root -o rss,command | grep 'memcached -d'  | awk '{print $0}{sum+=$1} END {print "\nMemory usage for memcached:", sum/1024, "MB\n"}'

2. stats 확인

# nc localhost 11211
stats

STAT cmd_get 1169958
STAT cmd_set 260621
STAT get_hits 823504
STAT get_missed 346454

※ hitrate : get_hits / cmd_get
 


댓글 없음:

댓글 쓰기