Various commands to debug high memory usage in redis
Check the status of the Redis service.
systemctl status redisDisplay the installed Redis CLI version.
redis-cli --versionView the Redis configuration file.
cat /etc/redis/redis.confCheck the current memory usage of Redis.
redis-cli info memory | grep used_memory_humanCheck the maximum memory configuration of Redis.
redis-cli info memory | grep maxmemory_humanGet memory usage details for Redis databases.
redis-cli info memory | grep dbRetrieve the Redis slow query log.
redis-cli info keyspaceShow the system's memory usage in megabytes.
redis-cli slowlog getDisplay swap usage summary.
free -mCheck disk space usage.
swapon -sView the Redis service logs.
df -h