obukhov / redis-inventory

CLI tool to see redis memory usage by keys in hierarchical way. Think of disk inventory but for redis.
MIT License
237 stars 31 forks source link

The memory consumption sum doesn't add up #111

Open artem-tim opened 1 year ago

artem-tim commented 1 year ago

Summing the consumption of root level keys of the table output only adds up to about 60% of the total in my case (of about 1.5GB). The same result with the chart, where about 40% is blank. Any idea why that's happening ? image

obukhov commented 1 year ago

Hey @artem-tim, sorry just noticed your request.

This can be related to max children limitation, if the variability of the child keys are two high (there is no pattern) it will stop recording children on each level after 10 of them. You can increase that limit by passing

--maxChildren=100

with any arbitrary number, though with higher numbers the tool will consume more RAM when running.