java process consumes high memory system, investigation methods

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

 

Guess you like

Origin www.cnblogs.com/wujf/p/10971969.html