1、获取:线程id
jps -l
2、生成内存泄露文件
jmap -histo:live 线程id > 路径/xxxx.txt
3、查看:泄露文件后,启动arthas
curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar
4、arthas查看:可疑类信息
stack 类全限定路径 -n 1
5、分析类:是否会出现(内存溢出)
1、获取:线程id
jps -l
2、生成内存泄露文件
jmap -histo:live 线程id > 路径/xxxx.txt
3、查看:泄露文件后,启动arthas
curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar
4、arthas查看:可疑类信息
stack 类全限定路径 -n 1
5、分析类:是否会出现(内存溢出)