Redis memory utilization

To troubleshoot possible memory consumption issues, it maybe necessary to check the memory being utilized by Redis. This can be done using the command below on the Linux host where OpenIAM is installed:

redis-cli -a [redis password] info memory

The command will provide the output shown below:

used_memory:3269568
used_memory_human:3.12M
used_memory_rss:16863232
used_memory_rss_human:16.08M
used_memory_peak:4749904
used_memory_peak_human:4.53M
used_memory_peak_perc:68.83%
used_memory_overhead:2549598
used_memory_startup:791016
used_memory_dataset:719970
used_memory_dataset_perc:29.05%
allocator_allocated:3356656
allocator_active:4268032
allocator_resident:9441280
total_system_memory:33506660352
total_system_memory_human:31.21G
used_memory_lua:53248
used_memory_lua_human:52.00K
used_memory_scripts:6520
used_memory_scripts_human:6.37K
number_of_cached_scripts:7
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.27
allocator_frag_bytes:911376
allocator_rss_ratio:2.21
allocator_rss_bytes:5173248
rss_overhead_ratio:1.79
rss_overhead_bytes:7421952
mem_fragmentation_ratio:5.22
mem_fragmentation_bytes:13634680
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:1741894
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0

You may also find it useful to get the statistics for Redis using:

redis-cli -a [redis password] --stat

You will see output as shown below

------- data ------ --------------------- load -------------------- - child -
keys mem clients blocked requests connections
152 3.20M 105 0 76133 (+0) 488
152 3.24M 105 0 76135 (+2) 488
152 3.20M 105 0 76136 (+1) 488
152 3.32M 105 0 76156 (+20) 488