How to interpret a graph of GC activity in JProfiler?

Recently, I have been working on code optimization (during the calculation and the maximum required memory). To find out if there is a potential profit for optimizing the cost of memory, I use JProfiler. Usually,

  • if it is tall, I should try to reduce it globally.
  • if it is cool, I should try to reduce the creation of intermediate objects.

Now I am in the second situation, and the GC activity graph shows surges, but they are all less than 2% (see image below). How should I understand this?

By default, I understand that the sum / integral of the GC activity curve is an estimate of the total percentage of CPU used to collect data. So here it will mean much less than max 2%

It is right? Did I miss something?

enter image description here

+4
2

, / GC , .

, .

, , max 2%

max . , 100% , GCing. , GC. , .

?

, , , GC. , . GC JVM , , , .

+2

, / GC - CPU, . , , max 2%

?

, . , , Live Memory- > Allocation Call Tree "Garbage collect objects"

enter image description here

, " ".

enter image description here

+4

Source: https://habr.com/ru/post/1686540/


All Articles