1、jmeter脚本,请求redis key连接数达到一定数量时,请求报500,无法正常请求成功
报错内容大致如下:
2019-08-13 09:44:18,631 WARN o.a.j.p.j.s.BeanShellSampler: Exception executing script. org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: ``//import java.util.Map; import redis.clients.jedis.Jedis; import org.apache.comm . . . '' : Method Invocation jedis.auth
2019-08-13 09:44:18,645 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``//import java.util.Map; import redis.clients.jedis.Jedis; import org.apache.comm . . . '' : Method Invocation jedis.auth
2019-08-13 09:44:18,645 WARN o.a.j.p.j.s.BeanShellSampler: Exception executing script. org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: ``//import java.util.Map; import redis.clients.jedis.Jedis; import org.apache.comm . . . '' : Method Invocation jedis.auth
看报错内容,并看不出来具体问题在哪
2、查看redis客户端连接数
性能redis(6380):0>info clients
"# Clients
connected_clients:1970 #当前连接数
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
"
性能redis(6380):0>CONFIG GET maxclients
- "maxclients"
- "10000" #最大连接数
当客户端连接数超过10000时,请求被限制了,所以脚本请求报500,无法请求成功,当连接数消费完下降时,又能正常请求成功