随笔记录
常用工具
2022-3-2 diaba





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





发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容