Hello guys. How you monitor heap size usage, for instance for Confluence. Currently we monitor using standart way by retrieving this data from Linux (screen attached) , but there are differences in Confluence System info and in Linux (because as I known there are some metadata etc). How we can correctly monitor It?
Hey Andrii,
Check out the recommendations in this recent Community thread! In short you want to run an agent inside the JVM itself to give you an idea of the heap allocation between different generations - the thread goes over several options of services to do that.
It's worth noting that the method you see using top doesn't accurately show you what's really going on in the application. The JVM will grab as much memory as it needs from the operating system and then generally not release it. The minimum heap value also comes into play when looking at the output in top. As a rule of thumb, we recommend setting the minimum and maximum heap values to the same size.
Cheers,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.