Change the Web Service Timeout in WebSphere at the JVM or WebSphere ESB Application Level
owenc 1000003T00 Visits (17227)
Change the Web Service Timeout on a WebSphere JVM
The WebSphere JVM sets the web service call timeouts to the default value of 600 seconds. This is fine if the web service calls always completed in milliseconds. But, for some, that always is not the case.
If a web service call blocked for a long time, this would mean that JVM threads in the WebSphere Application Server would be blocked too. This is an issue because threads are finite. The longer the web services are blocked, more new requests would block even more threads until the JVM becomes unresponsive.
To fix this (or at least to protect the JVM), the recommendation is to lower the web service call timeout on every JVM in the system. The timeout value (shown in the screen shot below, see the "timeout") is set to 90 seconds.
Figure 1 Admin Console JVM Custom Properties
Change the Web Service Timeout on a WebSphere ESB Application
An individual application can over-ride the JVM timeout. If you’re using a JAX-WS binding, you need to define a new policy set that contains a HTTP transport policy as described in the WebSphere Application Server InfoCenter:
Figure 2 Defining a Policy Set Using the Admin Console