2

We are planning to do load testing of our server and we need to generate heavy load from Jmeter tool. But as per i know, jmeter waits for the response to create another request thread. Is there a way to create http request without waiting for response from the server using jmeter? if not, what are the available work around to generate heavy load keeping number of threads fixed?

Praveen PS
  • 127
  • 2
  • 5
  • 17

2 Answers2

7
  1. Define a very small timeout in the HTTP Request sampler (or even better in HTTP Request Defaults so the setting would be applied to all HTTP Request samplers) like 1 millisecond so JMeter will close the connection right after sending the request

    JMeter HTTP Request Defaults Timeout

  2. (Optional) To avoid JMeter marking requests as failed add Response Assertion and tick Ignore Status box

    JMeter Assertion Ignore Status

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
1

You can set in HTTP Request in the Advanced tab Timeout of Connect and Response with 1 ms

Connect Timeout Connection Timeout. Number of milliseconds to wait for a connection to open.

Response Timeout Response Timeout. Number of milliseconds to wait for a response. Note that this applies to each wait for a response.

If you need to return always success you can add with JSR223 PostProcessor and use prev variable:

prev.setSuccessful(true)
Community
  • 1
  • 1
Ori Marko
  • 56,308
  • 23
  • 131
  • 233