sensu-plugins / sensu-plugins-java

Sensu Java Plugins
http://sensu-plugins.io
MIT License
5 stars 25 forks source link

Checks are using Current HEAP instead of Max HEAP #26

Closed juan-moreno closed 7 years ago

juan-moreno commented 7 years ago

When java is started with different values -Xms (initial memory allocation) and -Xmx (maximum memory allocation), the checks triggers an alarm when reach the treshold, but the percentage is calculated using the current size, later the JVM expand the memory because the HEAP is reaching the current memory and change the size, this trigger a resolved status.

We can not know with what percentage of memory the JVM will expand / decrease the current HEAP, it is necessary that the check calculate the used percentage with the Max memory that the HEAP could allocate.

majormoses commented 7 years ago

closed via #28