Created
March 3, 2022 02:14
-
-
Save ohmrefresh/51fbbe0e78ba5ad8d1fcb1d073124645 to your computer and use it in GitHub Desktop.
Redis Memory Analyzer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rma -s {{host}} -p 6379 -b all | |
Match *: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 91/91 [00:00<00:00, 1052.08it/s] | |
Aggregating keys by pattern and type | |
Apply rules | |
WARNING:rma.rule.GlobalKeySpace:*max* option skipped: ResponseError("unknown command 'CONFIG'") | |
Processing String patterns: 0%| | 0/115 [00:00<?, ?it/s]WARNING:rma.rule.ValueString:ResponseError("unknown command 'DEBUG'") | |
Nodes | |
| Stat | Value | | |
|:------------------------------|:---------------| | |
| info used_memory | 5796472 | | |
| info used_memory_human | 5.53M | | |
| info used_memory_rss | 12361728 | | |
| info used_memory_rss_human | 11.79M | | |
| info used_memory_peak | 39896424 | | |
| info used_memory_peak_human | 38.05M | | |
| info used_memory_peak_perc | 14.53% | | |
| info used_memory_overhead | 5082278 | | |
| info used_memory_startup | 3662152 | | |
| info used_memory_dataset | 714194 | | |
| info used_memory_dataset_perc | 33.46% | | |
| info used_memory_lua | 348160 | | |
| info used_memory_lua_human | 340.00K | | |
| info maxmemory | 2241331200 | | |
| info maxmemory_human | 2.09G | | |
| info maxmemory_policy | volatile-lru | | |
| info mem_fragmentation_ratio | 2.13 | | |
| info mem_allocator | jemalloc-4.0.3 | | |
| info active_defrag_running | 0 | | |
| info lazyfree_pending_objects | 0 | | |
| totalKeys | 91 | | |
| redisKeySpaceOverhead | 3328 | | |
Keys by types | |
| name | count | type | percent | | |
|:------------------------------------|--------:|:-------|:----------| | |
| SAMPLE:* | 75 | string | 82.41% | | |
| MOCK-KEY0:* | 15 | string | 16.48% | | |
| MOCK-KEY:campaigns:*:*:*:* | 10 | string | 10.98% | | |
| MOCK-KEY:campaigns:*:PRE:* | 6 | string | 6.59% | | |
| MOCK-KEY:campaigns:*:POS:* | 3 | string | 3.29% | | |
| MOCK-KEY2 | 1 | string | 1.09% | | |
| MOCK-KEY3 | 1 | string | 1.09% | | |
| MOCK-KEY4 | 1 | string | 1.09% | | |
| MOCK-KEY5 | 1 | string | 1.09% | | |
| SAMPLE-COMPOSITE:MOCK6:* | 1 | string | 1.09% | | |
| MOCK7 | 1 | string | 1.09% | | |
Keys statistic | |
Stat by <string> | |
| Match | Count | Useful | Free | Real | Ratio | Encoding | Min | Max | Avg | TTL Min | TTL Max | TTL Avg | | |
|:------------------------------------|--------:|---------:|-------:|-------:|--------:|:------------------------------------------|------:|------:|---------:|----------:|----------:|-----------:| | |
| SAMPLE:* | 75 | 100624 | 0 | 118016 | 1.17 | raw [70.6%] / int [20.0%] / embstr [9.3%] | 0 | 24608 | 1341.65 | 154 | 2590530 | 2348453.11 | | |
| MOCK-KEY0:* | 15 | 0 | 0 | 480 | 480.00 | int [100.0%] | 0 | 0 | 0.00 | 2544771 | 2544774 | 2544772.60 | | |
| MOCK-KEY:campaigns:*:*:*:* | 10 | 115520 | 0 | 152640 | 1.32 | raw [100.0%] | 544 | 28704 | 11552.00 | 1392711 | 1492643 | 1454427.00 | | |
| MOCK-KEY:campaigns:*:PRE:* | 5 | 74400 | 0 | 91040 | 1.22 | raw [100.0%] | 544 | 28704 | 14880.00 | 1392711 | 1489733 | 1446402.40 | | |
| MOCK-KEY:campaigns:*:POS:* | 3 | 24672 | 0 | 36960 | 1.50 | raw [100.0%] | 8224 | 8224 | 8224.00 | 1405095 | 1492643 | 1456685.00 | | |
| MOCK-KEY2 | 1 | 0 | 0 | 32 | 32.00 | int [100.0%] | 0 | 0 | 0.00 | -1 | -1 | -1.00 | | |
| MOCK-KEY3 | 1 | 64 | 0 | 112 | 1.75 | embstr [100.0%] | 64 | 64 | 64.00 | 183 | 183 | 183.00 | | |
| MOCK-KEY4 | 1 | 0 | 0 | 32 | 32.00 | int [100.0%] | 0 | 0 | 0.00 | -1 | -1 | -1.00 | | |
| MOCK-KEY5 | 1 | 0 | 0 | 32 | 32.00 | int [100.0%] | 0 | 0 | 0.00 | -1 | -1 | -1.00 | | |
| SAMPLE-COMPOSITE:MOCK6:* | 1 | 1312 | 0 | 1568 | 1.20 | raw [100.0%] | 1312 | 1312 | 1312.00 | -1 | -1 | -1.00 | | |
| MOCK7 | 1 | 0 | 0 | 32 | 32.00 | int [100.0%] | 0 | 0 | 0.00 | -1 | -1 | -1.00 | | |
| Total: | 114 | 316592 | 0 | 400944 | 0.00 | | 0 | 0 | 0.00 | -1 | 2590530 | nan | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment