• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Magento 2.3.3 Redis cache grows unlimited

by admin

Introduction

Recently, one of our customers had troubles with redis-cache on his production multistore with 30 stores on it. His Redis became unavailable from time to time. We start to monitor it and found that there were too many expired Redis keys inside the database. Example of output:

> info keyspace
# Keyspace
db0:keys=45775,expires=41711,avg_ttl=79567831

Possible fixes

The possible way to prevent system server from dying was to set a hard limit for Redis memory consumption. Relying on the memory limit of Redis has some performance impact and there are always things cleared that don’t need to and vice versa. So, This should be handled by the application by setting a reasonable TTL.

We’ve fixed the following issue with upgrade redis-cache to the newest version with an update composer.json

"colinmollenhour/cache-backend-redis": "1.11.0 as 1.10.6"

Perfmanent fix

Also, a fix for this issue will be released in Magento 2.3.4. Link: https://github.com/magento/magento2/pull/25488

Conclusion

Alway use the latest software releases to prevent such kind of bug. Especially, such as Magento.

Filed Under: Linux

Some more articles you might also be interested in …

  1. yum Command Examples in Linux
  2. gsettings Command Examples in Linux
  3. nmcli device Command Examples in Linux
  4. flatpak: command not found
  5. How to Check vendor of installed RPM packages in Linux
  6. setsid: command not found
  7. powertop: command not found
  8. exiftool: Read and write meta information in files
  9. tracepath: command not found
  10. How To Check World Wide Port Names (WWPN) of Tape Drives Attached to Linux host

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright