Threads never released

I am having an issue where threads never get released.

my domain.xml in my sun one 8.0 server has the following:

<thread-pools>

<thread-pool idle-thread-timeout-in-seconds="120" max-thread-pool-size="200" min-thread-pool-size="0" num-work-queues="1" thread-pool-id="thread-pool-1"/>

</thread-pools>

An iiop call is being made from a weblogic app server calling an EJB. Results are returned and all seems to work well however the thread used to execute this is never released. After 200 calls are made the sunone server then hangs. I can see through netstat that there are 200 connections ESTABLISHED. At first I was thinking this must be a client coding issue where connections are not being closed however even if I shutdown the weblogic server and see all the connections go away in netstat the sunone app server continues to hold these threads.

I also monitor the thread count with the following command in asadmin:

get -m "server.thread-pools.orb\.threadpool\.thread-pool-1.numberofbusythreads-count"

From this I can see the count continue to climb.

Even if there is a coding issue here with managing the connections properly I would think closing the client app server down causing all the connections to go away should be something that would cause these threads to free up.

If someone could please point me to possible tuning parms that I should look over I would be very grateful.

- Mike

[1489 byte] By [mkokot] at [2007-11-26 6:39:22]
# 1

I was able to resolve the issue of threads freeing up when I take down the client server. I was having a problem connecting to the App Server Admin Console and once I resolved this it also fixed this part of the threading issue. I had to change host names in my domain.xml. The configuration I have is a little tricky with machines on different networks and NATs involved.

The second part where threads do not free up where the client app does not appear to be closing the connections is still a problem. It would seem that iiop connections never become idle no matter how long nothing more is done on that thread.

- Mike

mkokot at 2007-7-6 14:51:03 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

Just in case someone else runs into this problem I found a better explanation to the problem I am having and a possible work around. Review: http://forum.java.sun.com/thread.jspa?threadID=637281&messageID=3801013

Note for this work around you have to be using jdk1.4.2 or above and in my case this is not possible for the WL 6.1 servers we have as clients, therefore a connection pool for the Intial Context Factory is being developed.

mkokot at 2007-7-6 14:51:03 > top of Java-index,Application & Integration Servers,Application Servers...