[JAVA] Let's analyze the GC log using GCMV

What is GCMV

It is a tool that visualizes the GC log (native_stderr.log). This article is for beginners of Eclipse like me. This article is for those who want to visualize the GC log and those who do not know how to use GCMV.

Premise

--GC log is at hand --Eclipse is already installed

procedure

Install GCMV on Eclipse

Literally launch eclipse

Access the following URL with a browser https://marketplace.eclipse.org/content/ibm-monitoring-and-diagnostic-tools-garbage-collection-and-memory-visualizer-gcmv

Drag the ** Install ** button to bring it into the Eclipse frame and release your hand from the mouse.

スクリーンショット 2018-12-25 20.50.15.png

The installation dialog will open, so install according to the flow. (I forgot to take the screenshot !!) Eclipse will be restarted during installation. Probably succeeds without any problems.

Start GCMV

Click Window> Perspective> Open Perspective> Other> GCMV on the menu bar

Visualize GC logs using GCMV

Click File> Load File on the menu bar Select the GC log file.

スクリーンショット 2018-12-25 21.41.40.png

You can see various information by selecting the tab at the bottom of the image. GCMV sounds convenient.

This article is a part of the work to check the GC log while searching for a solution to the problem that the application is stopped for a long time due to Java's full GC. I learned that Java heap-related jargon includes ʻEden, Survivor, ʻOld, Permanent, and Stop the world. It's unique and interesting.

Recommended Posts

Let's analyze the GC log using GCMV
Let's specify the version when using docker
Let's introduce the credit card function using payjp (preparation)
Let's understand the function!
[Enum] Let's improve the readability of data by using rails enum