Friday, 31 July 2015

Setting Timeout for Weblogic Webservice Client and for all clients

Setting Timeout for Weblogic Webservice Client and for all clients

Use below options for Weblogic Webservice Client and for all clients.

Replace xxxx with relevant timeout value below.


-Dweblogic.https.client.defaultConnectTimeout=xxxx milisecs
-Dweblogic.http.client.defaultConnectTimeout=xxxx milisecs


OR
-Dweblogic.webservice.UseWebLogicURLStreamHandler=false
-DUseSunHttpHandler=true
-Dsun.net.client.defaultConnectTimeout=xxxx milisecs
-Dsun.net.client.defaultReadTimeout=xxxx milisecs



You may gradually fine tune the timeout parameters when errors like below are seen in the Weblogic logs.


Caused By: java.net.SocketTimeoutException: Read time out after 30000 millis
at weblogic.socket.NIOSocketMuxer$NIOInputStream.readInternal(NIOSocketMuxer.java:825)
at weblogic.socket.NIOSocketMuxer$NIOInputStream.read(NIOSocketMuxer.java:758)
at weblogic.socket.NIOSocketMuxer$NIOInputStream.read(NIOSocketMuxer.java:741)
at weblogic.servlet.internal.PostInputStream.readAndCalTime(PostInputStream.java:229)
at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:177)
at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:236)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams


<BEA-000000> <Broken pipe
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
at weblogic.socket.NIOSocketMuxer$NIOOutputStream.writeInternal(NIOSocketMuxer.java:1072)
at weblogic.socket.NIOSocketMuxer$NIOOutputStream.write(NIOSocketMuxer.java:991)

Also see

Setting timeout for for JAX-WS Webservice clients generated from clientgen

Setting timeout for for JAX-RPC Webservice clients generated from clientgen

No comments:

Post a Comment