2 Replies Latest reply on Aug 9, 2004 4:36 PM by Elias Ross

    too many idle threads

    greg ma Newbie

      hi,
      We are using jboss 3.2.1 with jms over http. We noticed that each client connects to the jboss server will cause the jboss generates 2 threads to handle its request (we use both topic and queue).
      Our problem is: there are too many idle threads existing, from the jmx-console, we can see that there are totally 886 running, among wich 408 are idle threads. We've set the maxIdleTimeMs to 30000, so in theory, some idle threads will terminate after 30 seconds but in fact they do not.
      Our jboss server will cease to function about every 9 hours:
      [jbossweb] WARNING:
      java.lang.OutOfMemoryError: unable to create new native thread
      at java.lang.Thread.start(Native Method)
      at org.mortbay.util.ThreadPool$PoolThread.enterPool
      (ThreadPool.java:385)
      at org.mortbay.util.Pool.newPondLife(Pool.java:339)
      at org.mortbay.util.Pool.get(Pool.java:276)
      at org.mortbay.util.ThreadPool.run(ThreadPool.java:319)
      at org.mortbay.util.ThreadedServer$Acceptor.run
      (ThreadedServer.java:515)

      Is this a known issue which is already fixed in jboss 3.2.5?
      Thanks in advance.