A Redis server consumes tens of Gigabytes of memory in a short period of time and eventually crashes due to SWAP. Because the social background of this server is more complicated, it is impossible to judge who the suspect is.
The initial intuition is that some people have saved a lot of data, so the problem becomes to find out which keys take up a lot of space, DBA colleagues used redis-rdb Tools such as -tools to analyze data files. It is a pity that although some large-volume keys were found, the suspects were eventually ruled out and the problem seemed to be deadlocked.
After being insinuated into a dead end, we began to adjust the angle of the investigation: even if the space occupied by a key itself is not large, if the number of keys in the same mode is large, then the total will take up a lot of space. Then the problem becomes a lot of space to find out which keys of the same mode take up. This time I don't want to use any tools, but I want to check the memory changes while deleting the suspicious keys on the test server:
shell> /path/to/redis-cli keys foo:*
Because the installation of debian uses a minimal installation, the default installation in Chinese,
Many media and experts believe that Linux believes that Linux is more secure than Windows. However,
Too many open files Errors are common faults in Linux systems. Solutions can be easily found on the
How do I use a USB-based storage device in a Linux environment? This
How to configure vnc under linux
Synchronization and Task Scheduling in the Linux Kernel
Linux sort command parameters and usage details
Linux traffic monitoring script
Awk operator (arithmetic operator, assignment operator, relational operator, logical operator,
How to use cacti to get the custom information sent by snmp? Figure
Scientific linux build jdk myeclipse tomcat environment
Win10 technology preview version development tool installation steps tutorial detailed
Windows 10 build 10240 receives another security update KB3074683
What should I do if there is noise in Windows7?
Windows Shutdown Deletes hiberfil.sys File
How win7 system multi-core processor becomes single-core processor
A few steps of the notebook win7 change wireless routing
What if Win10 does not search for wifi? Win10 search can not find wifi solution