How do you generate and analyze a thread dump from a running JBoss instance?
Thread.getAllStackTraces() (since Java 1.5)