1. 程式人生 > >redis狀態與效能監控

redis狀態與效能監控

1、redis-benchmark 
redis基準資訊,redis伺服器效能檢測
redis-benchmark -h localhost -p 6379 -c 100 -n 100000 
100個併發連線,100000個請求,檢測host為localhost 埠為6379的redis伺服器效能 
 
2、redis-cli
redis-cli -h localhost -p 6379 monitor 
Dump all the received requests in real time; 
監控host為localhost,埠為6380,redis的連線及讀寫操作 
 
redis-cli -h localhost -p 6379 info 
Provide information and statistics about the server ; 
提供host為localhost,埠為6380,redis服務的統計資訊