redis-- use redis-rdb-tools to analyze memory usage of redis

Redis had heard excellent performance, but difficult to use, but after reading Hacker News reports, or intimidated by its difficulty.

Original title: From 1.5 GB to 50 MB: The Story of My Redis Database, link here: http://davidcel.is/blog/2013/03/20/the-story-of-my-redis-database/

Simple content of the article is (enough English level, wrong No wonder, then), first, because the design is not good, redis memory usage reaches 1.5GB, server crash occurs. Start optimizing, similar to recommendable: users: 1234: a combination of long healthy simplify this liked_beers as u: 1234: lb short combination of health, such changes saved only 10MB of memory. Later, using the redis-rdb-tools, analysis of what redis memory usage, to arrive at the server memory to high real bottleneck. After streamline business, the use of redis changed to 50MB, amazing changes. Author behind the article said, after a period of time, there should not be too high memory usage redis problem. Specific content, you can still go and see and find out.

redis-rdb-tools can be put into a json redis database files, memory use report is the redis. Through it, we can have a general understanding of the use of redis. redis-rdb-tools code here:

https://github.com/sripathikrishnan/redis-rdb-tools

Posted please specify from: Advisa

Reproduced in: https: //my.oschina.net/u/191928/blog/618624

Guess you like

Origin blog.csdn.net/weixin_34247155/article/details/91987025