ERR max number of clients reachedConnection closed by foreign host.

  1. 查看redis客户端可建立的最大连接数
# cat /reids-path/redis.conf |grep maxclients
maxclients 60000
  1. 查看当前redis使用的文件描述符数量
ll /proc/redis_pid/fd |wc -l
  1. 查看redis能打开的文件描述符数量
cat /proc/redis_pid/limits

你可能感兴趣的:(ERR max number of clients reachedConnection closed by foreign host.)