Reputation: 49150
I'm using Redis Desktop Manager For Windows to connect and run commands.
INFO command returns information and statistics about the Redis server.
A part of return string for the INFO
command is as below (taken from here):
.
.
.
# Memory
used_memory:9338208
used_memory_human:8.91M
used_memory_rss:14454784
used_memory_rss_human:13.79M
used_memory_peak:13677584
used_memory_peak_human:13.04M
total_system_memory:4142215168
total_system_memory_human:3.86G
.
.
.
But in my case I'm not getting total_system_memory
and total_system_memory_human
values.
It's just missing when I run INFO
command.
Actual output when I run INFO
:
.
.
.
# Memory
used_memory:561892576
used_memory_human:535.86M
used_memory_rss:575049728
used_memory_peak:562210816
used_memory_peak_human:536.17M
used_memory_lua:36864
mem_fragmentation_ratio:1.02
mem_allocator:jemalloc-3.6.0
# Persistence
loading:0
.
.
.
So, How can I know the total memory of my Redis instance?
Upvotes: 0
Views: 1118
Reputation: 5679
It's about the version change.
You can check the version in INFO command. redis_version it is.
Edit : Think of it as a feature. In the previous version there is no such thing called total system memory. In the higher versions they have provided that feature. That's all.
Basically in v2.8 the total system memory is the ram of your system unless until you have changed the redis.conf file with the maxmemory value.
Upvotes: 1