1
votes

I wrote an test plan by using JMeter. it's structured like this:

Thread Group

  • HTTP Cache Manager
  • HTTP Cookie Manager
  • CSV Data Set Config
  • CSV Data Set Config
  • Index Page
    • a few Http requests
  • Random Order Controller
    • a few Http requests
  • login page
    • a few Http requests
    • Random Order Controller
    • a few Http requests
    • Throughput Controller
    • a few Http requests
  • Simple Controller
    • a few Http requests
  • 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.

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.

1
you're possibly over hitting it with 50 threads (wild guess) Gateway Timeout perhaps . Look at w3.org/Protocols/rfc2616/rfc2616-sec10.html Note to implementors: some deployed proxies are known to return 400 or 500 when DNS lookups time outant
hi ant, thank you for your quick response. sometimes I got "500, Internal Server Error" "403, forbidden" , "401, Unauthorized" errors. but it works for other threads too. do have any suggestion on this too ? many thanks in advance.user1488025
is the same thing happening if you decrease your thread number?ant
no.if i decrease the thread number, it works fine.user1488025
well there you go, then it's not a jmeter test issue, your problem lies with your web service or whatever you're trying to testant

1 Answers

3
votes

you're possibly over hitting it with 50 threads (wild guess) Gateway Timeout perhaps .

Look at 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 :

We found the bug in mod_jk. 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.