Right, that's what I tried. I used the enumerate method to get all threads. But when calling the static method Thread.dumpStack() it justs prints the stack trace for the currently active thread.
The best solution for my situation would be an instance method in class Thread, e.g. getStackTrace(), which returns stack trace info as StackTraceElement[] (just as Throwable.getStackTrace() does) for any thread in my application.
Unfortunately such a method does not exist