- linux模糊查询文件名
find 目录路径 -name "*关键字*"
导出dump文件
root@server-Z370P-D3:~# jps | grep bpm-m
875293 bpm-manage.jar
root@server-Z370P-D3:~# jmap -dump:file=/tmp/bpm-manage.dump 875293
Dumping heap to /tmp/bpm-manage.dump ...
Heap dump file created
root@server-Z370P-D3:~#
将导出的文件用Java目录下的jvisualvm.exe打开即可查看dump信息
分析内存信息
root@server-Z370P-D3:~# jps | grep bpm-manage
875293 bpm-manage.jar
root@server-Z370P-D3:~# jstat -gc 875293
S0C S1C S0U S1U EC EU OC OU MC MU CCSC CCSU YGC YGCT FGC FGCT GCT
262144.0 262144.0 0.0 240912.8 1572864.0 1318069.3 2097152.0 572021.5 122668.0 120102.4 15328.0 14810.9 55 1.524 6 0.263 1.787
root@server-Z370P-D3:~#