jmap 导出 java 进程内存状态

例如导出hallSysten线程堆栈信息到文件:

/deya/jdk1.8/bin/jstack $(/deya/app/springboot.sh status | grep hallSystem | grep java | awk '{print $2}') > /deya/dump/thread_hall_`date +%s`

例如导出hallSysten内存堆状态到文件:

/deya/jdk1.8/bin/jmap $(/deya/app/springboot.sh status | grep hallSystem | grep java | awk '{print $2}') > /deya/dump/heap_hall_`date +%s`

Leave a Comment

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据