2 Replies Latest reply on Sep 9, 2010 10:49 AM by sebastiendeg

    Too many thread in Jboss 4.2.2

    sebastiendeg

      Hi,

       

      We have many Jboss servers talking to each other using EJB 3.0 (SLSB).

      Now that the servers are getting very busy, we are having problem with Jboss creating too many Threads.

      At some point, we have an exception when it can't create native Threads anymore.

       

       

      It seems to be due to remoting as it does happens when we do load testing from the client.

      looking at the jboss web-console, most of the Thread are as follow :

       


       

      Thread: Timer-896496 : priority:5, demon:true, threadId:1114825, threadState:WAITING, lockName:java.util.TaskQueue@4c8113f8

      java.lang.Object.wait(Native Method)
      java.lang.Object.wait(Object.java:485)
      java.util.TimerThread.mainLoop(Timer.java:483)
      java.util.TimerThread.run(Timer.java:462)

      Thread: Timer-896497 : priority:5, demon:true, threadId:1114826, threadState:WAITING, lockName:java.util.TaskQueue@6d5199b5

       

      java.lang.Object.wait(Native Method)
      java.lang.Object.wait(Object.java:485)
      java.util.TimerThread.mainLoop(Timer.java:483)
      java.util.TimerThread.run(Timer.java:462

       

       

      They are found under the group :

       

       

      Thread Group: main : max priority:10, demon:false

      Thread: DestroyJavaVM : priority:5, demon:false, threadId:9, threadState:RUNNABLE, lockName:null

       

      Thread Group: jboss : max priority:10, demon:false

       

      Any idea how we could get rid of these Thread or limit the time they live ?

      Thanks.

      Sebastien