Various commands to debug high memory usage in redis
Check the status of the Redis service.
systemctl status redis
Display the installed Redis CLI version.
redis-cli --version
View the Redis configuration file.
cat /etc/redis/redis.conf
Check the current memory usage of Redis.
redis-cli info memory | grep used_memory_human
Check the maximum memory configuration of Redis.
redis-cli info memory | grep maxmemory_human
Get memory usage details for Redis databases.
redis-cli info memory | grep db
Retrieve the Redis slow query log.
redis-cli info keyspace
Show the system's memory usage in megabytes.
redis-cli slowlog get
Display swap usage summary.
free -m
Check disk space usage.
swapon -s
View the Redis service logs.
df -h