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?
