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
2024-04-11 13:11:43
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