jedis异常:Could not get a resource from the pool

1.jedis机器-->ping-->redis机器,毫秒级的响应时间----网络畅通

2.使用netstat -apn |grep redis-server连接数为20多个--网络连接数正常

3.free -m内存使用率60%---(表面上)内存够用

4.df -h磁盘使用率15%---磁盘空间充足

5.使用redis-cli,执行info命令,client部分:
#Clients
connected_clients:18
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
clients数量也正常   

6.使用redis-cli,执行ping命令

7.连接数增长过大

通过 slowlog get 命令查看慢查询是否堵塞 或者在报警时间点通过monitor排查

猜你喜欢

转载自www.cnblogs.com/hankyoon/p/12459419.html