View all memory usage
top
Positioning threading issues (see the process through the command thread 16764 cases)
ps p 16764 -L -o pcpu,pmem,pid,tid,time,tname,cmd 计数 ps p 16764 -L -o pcpu,pmem,pid,tid,time,tname,cmd |wc -l
Print stack information
jstack -l 16764 > /data/jstack.log