JMeter 响应 504 网关超时?
JMeter response 504 Gateway time-out?
我正在尝试对具有 1 个线程的端点执行测试。我使用 JMEter 配置了一个带有 JSON Monk 端点 URL 的 HTTP 请求。
但是当我 运行 测试时,我在采样器结果中得到 Response code:504。当我在浏览器中使用 URL 时,我也得到 504 网关超时
谁能帮我解决这个问题? - 我在另一台电脑上试过,我得到了同样的错误!
我已经正确安装了 JMeter,我的代码也是正确的。我正在研究 Windows 10。
HTTP 请求:
根据HTTP Status Code 504 description
The HyperText Transfer Protocol (HTTP) 504 Gateway Timeout server error response code indicates that the server, while acting as a gateway or proxy, did not get a response in time from the upstream server that it needed in order to complete the request.
Note: A Gateway might refer to different things in networking and a 504 error is usually not something you can fix, but requires a fix by the web server or the proxies you are trying to get access through.
所以这表明您要测试的服务器存在问题,如果您拥有该网站 - 去修复它,如果您认识负责它的人 - 通知 him/her/them。
从 JMeter 的角度来看,您无能为力。如果您知道响应应该是什么样子,您可以使用 Dummy Sampler 到 return 这个响应,这样您就可以使用响应数据
顺便说一句,我也很失望:
我正在尝试对具有 1 个线程的端点执行测试。我使用 JMEter 配置了一个带有 JSON Monk 端点 URL 的 HTTP 请求。
但是当我 运行 测试时,我在采样器结果中得到 Response code:504。当我在浏览器中使用 URL 时,我也得到 504 网关超时
谁能帮我解决这个问题? - 我在另一台电脑上试过,我得到了同样的错误!
我已经正确安装了 JMeter,我的代码也是正确的。我正在研究 Windows 10。
根据HTTP Status Code 504 description
The HyperText Transfer Protocol (HTTP) 504 Gateway Timeout server error response code indicates that the server, while acting as a gateway or proxy, did not get a response in time from the upstream server that it needed in order to complete the request.
Note: A Gateway might refer to different things in networking and a 504 error is usually not something you can fix, but requires a fix by the web server or the proxies you are trying to get access through.
所以这表明您要测试的服务器存在问题,如果您拥有该网站 - 去修复它,如果您认识负责它的人 - 通知 him/her/them。
从 JMeter 的角度来看,您无能为力。如果您知道响应应该是什么样子,您可以使用 Dummy Sampler 到 return 这个响应,这样您就可以使用响应数据
顺便说一句,我也很失望: