mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-02 04:08:34 +08:00
615 B
615 B
View all thread information
thread
{{execute T2}}
View the stack of specific threads
View the stack of thread ID 16:
thread 16
{{execute T2}}
View the stack of CPU usage TOP N threads
n
is used to specify the top number of busiest threads with stack traces printed:
thread -n 3
{{execute T2}}
i
is used to specify the interval to collect data to compute CPU ratios (ms)
View the CPU usage TOP N thread stack in 5 seconds
thread -n 3 -i 5000
{{execute T2}}
Find if the thread is blocked
b
is used to specify to locate the thread blocking the others
thread -b
{{execute T2}}