Is there anyway to generate core/heap dump file when JVM crashes? Since these files are usually very helpful to find out bugs in code.
Is there anyway to generate core/heap dump file when JVM crashes? Since these files
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & 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.
With the following JVM options:
JVM will dump the content of heap to a file in specified directory. Note that this only happens when
OutOfMemoryErroris thrown since dump isn’t really needed if JVM crashed due to a different reason.Edit: “Boolean options are turned on with -XX:+ and turned off with -XX:-.” docs