Monday, 20 October 2014

"What is the meaning of that error “java.net.SocketTimeoutException: Read timed out" in Neoload

When NeoLoad sends a request and acknowledged by the server, it will wait for the response.  However, in order not to wait an infinite amount of  time, there's a timeout so NeoLoad can give up and raise an error. That's why you got this “Read timed out” error.
By default, during the run time, this timeout is set to 300s (5 minutes). this period of time is usually sufficient for most situations.

Nevertheless, in specific cases, you might not get any data from the server for more than 300s. In that case; here is the procedure to increase the run time timeout in NeoLoad:

  1. Stop NeoLoad
  2. Edit <install_dir>\conf\controller.properties
  3. Go to the [Runtime] section and locate that key: runtime.so.timeout=300000    Change the value to 600000 to set a 600 seconds timeout (it's in milliseconds)
  4. Save
  5. Start NeoLoad

Now, NeoLoad will only alert you the timeout error if it did not receive any data after 600 seconds