The idea is to dump the trace immediately after the problem occurs, then to turn tracing off and, finally, to format the event data either chronologically or by process or thread.
This tracing starts with the root set, which consists of internal structures such as thread stacks and global references to objects.
这个跟踪以根集 开始,它由一些内部结构组成,比如线程栈和对象的全局引用。
3
Listing 2 is an abbreviated snippet from the JMXCollector collect method showing the collection and tracing of thread activity from the ThreadMXBean. See the full listing here.