Analysis logstash jvm Tuning and Profiling Logstash Performance question

i test a logstash instance with the visualVM at: https://www.elastic.co/guide/en/logstash/current/tuning-logstash.html#profiling-the-heap
cmd is as ./logstash -b 50000 -u 1 -w 16 -f xxx.conf

why the JVM use not like a straight line see the png file . how i can change this?

JVM setting is

thanks..

That looks like completely normal heap usage to me. When objects are allocated they are added to the heap. When heap utilization reaches 75% (CMSInitiatingOccupancyFraction) a CMS cycle will be kicked off which will garbage collect all the dead objects, thus reducing the heap utilization. Rinse and repeat.

as this
https://www.elastic.co/guide/en/logstash/5.6/tuning-logstash.html#profiling-the-heap the green as change
i see the jvm is like a straight line .
why?

The heap usage in a JVM with a generational collector (either ParNew+CMS in HotSpot, or gencon in J9) has three sawtooth patterns at different frequencies. I do not have a chart that shows the middle frequency one, but this shows the low frequency (tenured) and high frequency (eden) patterns.

AA1

However, if we reduce the resolution (equivalent to zooming out) the high frequency pattern disappears. This is what we see in your image.

And if we further reduce the resolution the low frequency pattern also disappears and we are left with random noise, which is what we have in the document you linked to.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.