Enter the command: jps -lvm : used to view the java process running on the current machine
Enter the command: jstack -l pid : jstack -l 6812 to view our application stack information
Enter the command: jstack -l 5618 > no.dump to print the stack information to the current directory