Get the dump file of JVM and the JVMdump File

Source: Internet
Author: User

Get the dump file of JVM and the JVMdump File

Two methods for obtaining JVM dump files

1. added two parameters during JVM startup:

# Generate heap dump when OOME occurs:-XX: + HeapDumpOnOutOfMemoryError # generate heap file address:-XX: HeapDumpPath =/home/liuke/jvmlogs/

 


2. execute commands to directly generate the dmp file of the current JVM before detecting a program exception. "6214" indicates the JVM process number.

Jmap-dump: format = B, file = serviceDump. dat 6214

 

Because the first method is an afterthought method, you need to wait for the current JVM problem to generate the dmp file. The real-time performance is not high. The second method is to suspend the service during execution, therefore, it may affect online operation. Therefore, the first method is recommended.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.