O'Reilly logo

Redis 4.x Cookbook by Zuofei Wang, Pengcheng Huang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

Before we dive into how to troubleshoot the memory issue, we first pay attention to how Redis calculates memory and checks if there are any out-of-memory (OOM) problems.

Generally speaking, the memory of a Redis instance includes the following parts:

We won't go into the details of each part of the preceding diagram, as you can find their meanings in the recipes of the previous chapters. For Redis version 4.0.1, one portion of memory that desires your considerable attention is the client query buffer. The metric used_memory includes this portion of memory, however, it may be extended as the client query buffer grows. Thus, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required