将Jcmd或Jstack打印的内容保存到文件
作者:互联网
jcmd <pid | main class> <command ...|PerfCounter.print|-f file> >> LogFileName.txt
jstack [-options] <pid> >>LogFileName.txt
./jcmd 51746 GC.class_histogram >> /root/1.txt
Jstack -l PID >> threads.txt
标签:Jcmd,打印,Jstack,jcmd,histogram,threads,LogFileName,txt 来源: https://www.cnblogs.com/wang-xiaohui/p/12131671.html