问题定位
查找问题线程
- top 查看问题进程 pid
- top -Hp pid 查看进程中有问题线程pid tid
- printf '%x/n' tid 转化为十六进制
- jstack pid |grep tid的十六进制 -A 30 查看线程堆栈信息
内存溢出问题
- jstat -gcutil java_pid 刷新时间间隔 查看分区占用情况和gc状况
- jmap -dump:format=b,file=name.dump java_pid 导出dump文件
- 用visualVM分析dump文件
More than 10 years backend development experience in e-commerce field. More than 3 years tech leader and frontend development experience. Proficient practical experience in DDD,Cloud-Native Development and DevOps。Focusing on ML&AI. Interested in web3 and metaverse.