Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Chandramouli Absent Member.
Absent Member.

Thousands of threads in TIMED_WAIT


   We've a web-service which creates a pool of 10 threads  (one for each upstream transaction) using ExecutorService API. Each of these connects to downstream CORBA via Orbix. But after the job is over the connection pool is destroyed using executor.shutdown() API. But what is happening is after a while I see 1000s of Orbix threads in TIMED_WAITING state which is forcing us to restart Weblogic which hosts the web-service. Since we don't create actual threads, I believe Orbix creates them and destroys them after *some* criteria.  So, I am interested in knowing, if there is any known issue with Orbix 3 on not killing or destroying threads.

Here's the stack trace. There are about 2800+ threads in this state ! This happens after almost a days's worth of load and we have to restart weblogic or we'll hit the "java.lang.OutOfMemoryError: Unable to create new native thread"


"OrbixWeb Connection Monitor thread" - Thread t@573

   java.lang.Thread.State: TIMED_WAITING

                at java.lang.Object.wait(Native Method)

                - waiting on <302d858f> (a IE.Iona.OrbixWeb.CORBA.ConnectTable)

                at IE.Iona.OrbixWeb.CORBA.ConnectTable.run(ConnectTable.java:91)

                at java.lang.Thread.run(Thread.java:682)


Orbix  version: Orbix 3


Any suggestions or help is highly appreciated.



1 Reply
scott_kay Absent Member.
Absent Member.

RE: Thousands of threads in TIMED_WAIT

Orbix 3.3 should run fine in a WebLogic application server container but we do not directly support it (WebLogic) as a deployment environment. You are also using the Java interface ExecutorService within your application and based on your description your WebService client application in WebLogic is calling CORBA Servers using the Orbix client jars. Which version of Orbix 3 are you using? Are you using the Thread filters for handling the multi-threaded client calls in your application? If so, what threading model are you using?
What version of Java and WebLogic are you using?
You can read up on thread filters for Orbix 3.3 in the online documentation at supportline.microfocus.com/productdoc.aspx
Middelware -> CORBA -> Orbix 3.3.x -> Java Programmer's Guide
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.