demesg可以用来查看开机之后的系统日志,其中可以捕捉到一些系统资源与进程的变化信息。
dmesg
dmesg | grep -E 'kill|oom|out of memory' --col
top
top -Hp pid
jps -l 类似linux的 ps -ef 查看进程状态
jstack 进程号 //查看堆栈信息
jstat -gccause 18356 1000 1000
jstat -class 18356
jstat -compiler 18356
jstat -gc 18356
jstat -gcnewcapacity 18356
jstat -gcmetacapacity 18356
jstat -gcutil 18356
jstat -printcompilation 18356