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:3269568used_memory_human:3.12Mused_memory_rss:16863232used_memory_rss_human:16.08Mused_memory_peak:4749904used_memory_peak_human:4.53Mused_memory_peak_perc:68.83%used_memory_overhead:2549598used_memory_startup:791016used_memory_dataset:719970used_memory_dataset_perc:29.05%allocator_allocated:3356656allocator_active:4268032allocator_resident:9441280total_system_memory:33506660352total_system_memory_human:31.21Gused_memory_lua:53248used_memory_lua_human:52.00Kused_memory_scripts:6520used_memory_scripts_human:6.37Knumber_of_cached_scripts:7maxmemory:0maxmemory_human:0Bmaxmemory_policy:noevictionallocator_frag_ratio:1.27allocator_frag_bytes:911376allocator_rss_ratio:2.21allocator_rss_bytes:5173248rss_overhead_ratio:1.79rss_overhead_bytes:7421952mem_fragmentation_ratio:5.22mem_fragmentation_bytes:13634680mem_not_counted_for_evict:0mem_replication_backlog:0mem_clients_slaves:0mem_clients_normal:1741894mem_aof_buffer:0mem_allocator:jemalloc-5.1.0active_defrag_running:0lazyfree_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 connections152 3.20M 105 0 76133 (+0) 488152 3.24M 105 0 76135 (+2) 488152 3.20M 105 0 76136 (+1) 488152 3.32M 105 0 76156 (+20) 488