LoginSignup
42
34

More than 5 years have passed since last update.

redisが使用しているメモリ容量の確認方法

Posted at

redisが使用しているメモリを確認したい時、redis-info cliのMemoryのそれぞれの項目の意味で説明をまとめる。

redis-cli info

Memory

used_memory:1004464
used_memory_human:980.92K
used_memory_rss:1765376
used_memory_peak:1004464
used_memory_peak_human:980.92K
used_memory_lua:35840
mem_fragmentation_ratio:1.76
mem_allocator:libc
  1. used_memory : redisによって割り当てられた総バイト数
  2. used_memory_human:単位表示(人間が読める型式の表現)
  3. used_memory_rss:OSから見たときのRedisによって割り当てられたバイト数
  4. used_memory_peak:Redisが消費する最大メモリ
  5. used_memory_peak_human:単位表示(人間が読める型式の表現)
  6. used_memory_lua:Luaのエンジンが使用するバイト数
  7. mem_fragmentation_ratio:used_memory_rssとused_memory間の比率
  8. mem_allocator:libc:メモリアロケータ
42
34
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
42
34