Full GC experience analysis

Background:

Individual machines: memory suddenly rises and CPU utilization increases.

Solving process

1. Jmap dump entire memory image

2. The whole file is more than 700 m and cannot be opened with jhat

3. Change heapananalyzer to open it, but the memory occupation is not analyzed. Use the command: Java - xmx4096m - jar ha39 jar

4. Change to the mat Eclipse Plug-in and directly open dump Bin file (JVM 10g). Mat plug-in address: http://download.eclipse.org/mat/1.6/update-site/

According to mat's analysis of the dump file on today, it is found that the large object is an ArrayList of string, and the content of string is like a date. Then search the whole project to find out the specific method. There is a while statement, which will enter an endless loop during boundary test, resulting in the continuous increase of memory, and finally heap out of memory.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>