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 <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