3 Replies Latest reply on Aug 15, 2011 1:04 PM by Anil Mathew

    JBoss 5.1 Shutdown is slow

    Anil Mathew Newbie

      We have a clustered environment with nodes and running on JBoss 5.1. We are noticing an approx. wait period of 15 minutes to shut down the Jboss instance. I used http://localhost:8080/threaddump/ and could see many threads in waiting and not really got any clue why it is taking so much time in shutting down.


      Any thoughts on how can i speed up the shut down process please?



      Anil Mathew

        • 1. Re: JBoss 5.1 Shutdown is slow
          Anil Mathew Newbie

          I did some more research on the thread dump and below are numerous thread states which i can see:


          java.lang.Thread.State: RUNNABLE
          java.lang.Thread.State: TIMED_WAITING (sleeping)
          java.lang.Thread.State: WAITING (parking)
          java.lang.Thread.State: TIMED_WAITING (parking)
          java.lang.Thread.State: WAITING (on object monitor)
          java.lang.Thread.State: TIMED_WAITING (on object monitor)


          Any thoughts on which one will be slowing down the JBoss Shutdown process?


          As always thank you for all the help.

          Anil Mathew


          • 2. Re: JBoss 5.1 Shutdown is slow
            Peter Johnson Master

            Look at the RUNNABLE threads first. If you are seeing a lot of CPU usage, take several thread dumps about 5 or so seconds apart. Then look at each runnable thread and figure out what they are doing.


            If there is little of no CPU usage, then look at the waiting threads, specifically the ones with larger stack traces. Then find out what they are waiting on (such as a database response). That will give you a clue as to where to look.

            • 3. Re: JBoss 5.1 Shutdown is slow
              Anil Mathew Newbie

              Thank You Peter for your thoughts.


              As per your suggestion i will dig the thread dump. Will update the forum once i found the solution.


              Thank You

              Anil Mathew