问题描述
我正在使用JMeter执行负载测试,其中用户应该执行启动-登录- clk仪表板页面- clk登陆页面(登录后进入的页面,即主页),其中 clk仪表板和 clk登陆页面重复动作5次。
I am executing load test using JMeter where users are suppose to do Launch--Login--clk dashboard Page--clk landing page (the page which come after login i.e. home page) where clk dashboard and clk landing page are repetitive action for 5 times.
直到30个用户,当我增加用户负载时,我没有收到任何错误,我开始因为
Till 30 users I am not getting any error when i increased users load i am start getting an error as
Response headers:
HTTPSampleResult fields:
ContentType:
DataEncoding: null
在示例结果中。
有人可以建议我为什么收到此错误吗?有时它可以为100个用户使用,有时我会遇到错误。
Could any one suggest why I am getting this error ? Sometimes it works for 100 users and sometimes I am getting an error.
请多多关照。
推荐答案
您将被拒绝连接,这意味着JMeter无法连接到服务器以执行所需的测试。
You are getting connection refused, this means that JMeter is not able to connect to your server to perform the required test.
之所以会发生,是因为:
This can happen because :
- 服务器未监听端口再次,就像它崩溃了一样
- 互联网连接断开了,在您这边,服务器端或中间
- 某些防火墙或代理或类似的东西您与服务器之间的组件正在拒绝连接
由于您正在运行测试,并且从同一个ip生成了大量连接服务器上,我将首先检查数字3,这意味着某些防火墙或代理出于过多负载或安全原因而将您的活动限制在服务器上。
Since you're running tests, and spawning a lot of connections from the same ip to the server, I would check the number 3 first, meaning some firewall or proxy is limiting your activity to the server for excessive load or security reasons.
这篇关于获取错误“响应代码:非HTTP响应代码:org.apache.http.conn.HttpHostConnectException”在jmeter中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!