Redis - monitoring memory usage

前端 未结 3 1438
广开言路
广开言路 2021-02-07 23:13

I am currently testing insertion of keys in a database Redis (on local). I have more than 5 millions keys and I have just 4GB RAM so at one moment I reach capacity of RAM and sw

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 23:37

    There is a good Unix utility named vmstat. It is like top but command line, so you can get the memory usage and be prepared before you system is halt. You can also use ps v PID to get this info about specific process. Redis's PID is can be retrieved this way: pidof redis-server

提交回复
热议问题