项目测试中,使用Jmeter进行压测时,应用程序报错
ERR max number of clients reached
Redis 默认最大客户端数量限制产看方法
127.0.0.1:6379> config get maxclients
- “maxclients”
- “4064”
遂查看Redis的配置文件redis.conf
################################### CLIENTS ####################################
# Set the max number of connected clients at the same time. By default
# this limit is set to 10000 clients, however if the Redis server is not
# able to configure the process file limit to allow for the specified limit
# the max number of allowed clients is set to the current file limit
# minus 32 (as Redis reserves a few file descriptors for internal uses).
#
# Once the limit is reached Redis will close all the new connections sending
# an error 'max number of clients reached'.
#
# maxclients 10000
发现配置文件里并未配置最大客户端,然后进行修改,配置了最大客户端
################################### CLIENTS ######################