简体   繁体   English

Jmeter http请求在一些随机线程中获得400响应代码

[英]Jmeter http requests get 400 response code in some random thread

I wrote an test plan by using JMeter. 我用JMeter写了一个测试计划。 it's structured like this: 它的结构如下:

Thread Group 线程组

  • HTTP Cache Manager HTTP缓存管理器
  • HTTP Cookie Manager HTTP Cookie管理器
  • CSV Data Set Config CSV数据集配置
  • CSV Data Set Config CSV数据集配置
  • Index Page 索引页面
    • a few Http requests 一些Http请求
  • Random Order Controller 随机顺序控制器
    • a few Http requests 一些Http请求
  • login page 登录页面
    • a few Http requests 一些Http请求
    • Random Order Controller 随机顺序控制器
    • a few Http requests 一些Http请求
    • Throughput Controller 吞吐量控制器
    • a few Http requests 一些Http请求
  • Simple Controller 简单控制器
    • a few Http requests 一些Http请求
  • View Results Tree 查看结果树

I run 50 threads, however, some random http request fails with "Response code:400" in a thread, but it's successful for in other threads. 我运行了50个线程,然而,一些随机的http请求在一个线程中失败并带有“响应代码:400”,但它在其他线程中成功。

So I'm don't know how to investigate on this, as it works fine sometimes but it fails once or twice. 所以我不知道如何对此进行调查,因为它有时工作正常,但它失败一次或两次。

Can anyone give me some suggestions? 谁能给我一些建议? I will really appreciate with your help. 在你的帮助下,我将非常感激。

you're possibly over hitting it with 50 threads (wild guess) Gateway Timeout perhaps . 你有可能用50个线程(狂野猜测) Gateway Timeout perhaps来击中它。

Look at http://w3.org/Protocols/rfc2616/rfc2616-sec10.html 请查看http://w3.org/Protocols/rfc2616/rfc2616-sec10.html

Note to implementors: some deployed proxies are known to return 400 or 500 when DNS lookups time out

if decreasing number of threads eliminates issue than it's not a test issue it's elsewhere. 如果线程数量的减少消除了问题,那么它就不是测试问题了。

Resolution details from the user1488025 : user1488025的分辨率详细信息:

We found the bug in mod_jk. 我们在mod_jk中发现了这个bug。 Basically the default configuration of mod_jk doesn't work under high load, it will become slow, unresponsive, causes http error and half closed connections over time. 基本上mod_jk的默认配置在高负载下不起作用,它将变得缓慢,无响应,导致http错误和半封闭连接随着时间的推移。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM