redis状态与性能监控

来源:互联网 发布:java双向加密 编辑:程序博客网 时间:2024/06/05 23:41

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 6380 monitor 
Dump all the received requests in real time; 
监控host为localhost,端口为6380,redis的连接及读写操作
 
 

redis-cli -h localhost -p 6380 info 
Provide information and statistics about the server ; 
提供host为localhost,端口为6380,redis服务的统计信息
 
 

原创粉丝点击