Asankha C. Perera wrote:
Alexy
... note that calling ODE server is quite time consuming, each call
takes from 20 to 40 seconds (maybe more)....
--- 1 - Downloaded Synapse 1.1 release, 3 ODE servers, 4 threads, 5
iterations. From time to time the following exception occur in client:
18:12:09,218 DEBUG HttpMethodDirector.executeWithRetry(403) : Closing
the connection.
18:12:09,218 INFO HttpMethodDirector.executeWithRetry(438) : I/O
exception (org.apache.commons.httpclient.NoHttpResponseException)
caught when processing request: The server localhost failed to respond
18:12:09,234 DEBUG HttpMethodDirector.executeWithRetry(442) : The
server localhost failed to respond
org.apache.commons.httpclient.NoHttpResponseException: The server
localhost failed to respond
This seems like a typical client connection timeout, as you say that a
request takes 20~40 seconds to complete.. To overcome this you should
increase your timeout.. for Synapse we use a default timeout of 60
seconds and easiest way to tune this is by setting a Java system
property "http.socket.timeout" to the desired value in ms. For axis2
clients refer to this <http://wso2.org/library/230>
(http://wso2.org/library/230)
Aaaarrrrgghh. After increasing number of threads issue got back. You
were right, after setting "http.socket.timeout" to 10 minutes everything
went ok. Thanks a lot!