How To Generate Heap Dump In Tomcat On Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Stop the Tomcat service.
2. Find the Tomcat process id. You can find the process id by running the command “ps aux | grep tomcat”.
3. Generate the heap dump using the command: jmap -dump:format=b,file=<file_name>.hprof <process_id>
4. Start the Tomcat service.