Search code examples
jmeterjmeter-4.0

How to send http request without waiting for response from server


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?


Solution

    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