Skip to main content
Cases
New Case
Knowledge Base
Logout
How to avoid the socket timeout exception during load testing?
Article Type:
FAQ
Published On:
10/12/18
Product:
Ready_API, SoapUI
Question
How to avoid the socket timeout exception during load testing?
Answer
Under the load, your server may start processing requests slower. If it takes the server more than 60 seconds to provide a response, ReadyAPI will stop waiting for it and close the connection by timeout. In this case, you may see the "java.net.SocketTimeoutException: Read timed out" errors in the logs.
To avoid this situation, you can increase the timeout value which is set to 60 seconds by default. The timeout is controlled by the “Socket timeout” global setting in Preferences >
HTTP
and the “Socket timeout” setting under the
TestCase options
. Note that no value or 0 means that the default value (60 sec) is used.
Also, the server may have a limit on a number of connections that can be open. During load testing, there can be a large number of open connections, so it is easy to reach the limit and get an error. To avoid this, set the "Close connections after request" value in Preferences >
HTTP
to true.
January
February
March
April
May
June
July
August
September
October
November
December
2020
2021
2022
2023
2024
2025
2026
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Today