I'm creating a global exception handling which collects some information before shutting down in some cases. One of this information is the current thread dump. i do this with following code:
ManagementFactory.getThreadMXBean().dumpAllThreads(true, true);
The problem is to write the information into a analyzable format for TDA. Is there a "simple" way to format the information instead of writing the format on my own?
EDIT: I'd like to have a full thread dump so I can find problematic threads. The above mentioned method delivers an array of ThreadInfo-Objects, so i have the data. My problem is that the written output isn't in a format TDA recognizes as thread dump.