The article recommends how to fix Redis.
Affected products and versions
- Magento Commerce Cloud 2.2.x., 2.3.x
- Magento Commerce 2.2.x., 2.3x
- All versions of Redis.
Website slowness or outage due to memory overflow in Redis.
Memory overflow can cause the Redis service to crash. During peak time, the Redis service may require more memory than what is currently allocated.
To check current configuration and used memory, run the following command in the CLI. It checks for used memory, maxmemory, evicted keys, and Redis up time in days:
redis-cli -p REDIS_PORT -h REDIS_HOST info | egrep --color "(role|used_memory_peak|maxmemory|evicted_keys|uptime_in_days)"
The REDIS_PORT and REDIS_HOST variables can be retrieved from
If the output from running the above query shows that the percentage of free memory is less than 40%, submit a ticket to Magento Support requesting an increase of the
maxmemory setting in Redis Server. If the evicted keys value is not "0" or the Redis up time in days equals 0 (indicating Redis has crashed today), you should also submit a ticket to Magento Support requesting an investigation and a fix for this issue.
To learn more about Redis memory refer to Redis Memory Optimization.