jps -l 查看java进程
 
jstat 统计信息  类装载、垃圾收集统计信息、JIT    -----   jstat -gc   jstat -compliler   jstat -class
 
非堆:mataspace(方法区) , codecache
 
内存溢出自动导出 -XX:+HeapDumpOutOfMemoryError
手动导出: jmap -dump:format=b,file=1.bin
jmap -heap 内存使用
 
top -p xxx -H / top -Hp xx 查看进程内CPU占用最高的线程
 
MAT 分析 堆转储,histogram 定位代码。
 
jmap -histo xxx 可以命令行查看对象占用排名。

相关文章:

  • 2021-10-13
猜你喜欢
  • 2021-06-19
  • 2021-05-09
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-05-22
  • 2021-12-23
相关资源
相似解决方案