wood burning stoves 2.0
The moose likes BEA/Weblogic and the fly likes Connection timeout parameter in Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Connection timeout parameter in Weblogic" Watch "Connection timeout parameter in Weblogic" New topic

Connection timeout parameter in Weblogic

shweta misra

Joined: Jun 06, 2012
Posts: 10
Our application (.ear) is deployed in the weblogic application server version 10.3.0

We are facing a thread stuck issue wherein an application thread gets stuck and the weblogic server goes into the WARNING state. The thread that gets stuck is actually
initiated by our application and it gets stuck because our application is waiting for a response to a request that it has sent to an external system. The thread stuck timeout value is 10 min and the response is not received before that leading to the thread getting stuck.

We want to achieve the following :-
Want to set some connection timeout parameter in the server say for 2 sec. When timeout period expires and no response is received some exception should be thrown automatically which should be caught by our application . This will help our application gracefully exit and avoid the thread stuck.

Please suggest where in the server we can find such a parameter.

(We found that in Tomcat server there is a connection-timeout parameter in the server.xml which helps serve the same thing we want to achieve. We want something similar in weblogic application server)
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 255

I dont think you have something like that which will throw exception but you can filter logs to get the stuck threads when they appear or can increase the stuck thread timeout period from 10mins to more.(Home >Summary of Servers >Server1>Tuning>Stuck Thread Max Time> 600secs default you can change it to higher values.

Off topic:
you can also take a thread dump using wlst from time to time and check for STUCK threads and can stop the application using wlst if you encounter one.

try below links:

Monitoring Weblogic STUCK threads and Application health

Regards, Ricky
Oracle Weblogic 10g Certified Expert TechPaste.Com
I agree. Here's the link: http://aspose.com/file-tools
subject: Connection timeout parameter in Weblogic
It's not a secret anymore!