I did some more research on the thread dump and below are numerous thread states which i can see:
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.
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.
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.