Jprofiler Tools Open dump file, Analysis jar package program memory too large after cpu100%__ software engineering

Source: Internet
Author: User
Tags jprofiler

The development of the collection of vehicle data program ran for 3-5 hours, the following results will appear


The Discovery program runs the memory in these several red dots fluctuation, in the cpu100% appears for a period of time the program will automatically end.

Later, the use of tool commands to analyze the problem is due to insufficient memory leading to the GC because GC Task thread occupies a higher CPU.

The specific steps are as follows

PS-MP 16991-o thread,tid,time |sort-rn print CPU highest thread

printf "%x\n" 17864 converts the thread ID to 16

Jstack 16991 |grep 42b2-a 30 Print stack information

This phenomenon is found to be due to memory problems, dump at the peak of memory

jmap-dump:live,format=b,file=xxx.xxx [PID]/path

Then there are a number of tools to analyze the dump memory, such as JPROFILER,JVISUALVM. But the recommended use of Jprofiler

This has a little trick with Jprofiler, the dump suffix to be changed to. Hprof can be opened by Jprofiler.


Related Article

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.