How to alert on JVM memory less than 10% available

Solution Verified - Updated -

Environment

  • JBoss Operations Network (JON)
    • 2.4.x
    • 3.x

Issue

  • How to set up an alert in JON if the JVM has less than 10% available.
  • How to set up an alert template in JON if the JVM has less than 10% available.

Resolution

To create this alert:

In JON 2.4

  1. select JBoss EAP resource -> Alert -> New Definition.
  2. enter Alert Properties;
  3. for Condition Set select Metric (If Condition) and from drop down list JVM Free Memory;
  4. select first radio button and "< (Less then)" and specify the absolute value.

Also, check that JVM metrics are enabled in the metric templates:

Administration -> System Configuration -> Templates -> JBossAS Server (JBossAS5 Plugin) -> Edit Metric Template

as well as schedule for individual JBoss instance:

select JBoss instance -> Monitor -> Schedules.

Values that are set in Schedules for specific resource will overwrite templates settings for the group of resources.

In JON 3.x

  • To a specific resource:
    Go to the Inventory > resource > jvm > Memory subsystem > Alert and set the condition according to your requirement.

  • As an alert template (example for EAP 6 standalone):
    Go to Administration > Alert Definition Templates > Servers > JBossAS7 Standalone Server > JVM > Memory Pool > Memory Pool Resource and set the condition according to your requirement.

Condition Type : Measurement Baseline Threshold
Metric : Usage - Used
Comparator : > (Greater Than)
Baseline Percentage : 90
Baseline: Average

Attached JON_JVM|Alerts|Definitions.png for reference.

Note: Condition Type: Measurement Baseline Threshold provides a way to compare the most recently collected measurement value to a percentage of its known baseline. This alert condition option lets you choose whether you want the comparison to be made against the minimum, average, or maximum baseline value currently recorded in the system. For instance, if available heap is 2000 and the heap used average is 1000, then above alert will be triggered when used heap average is 900 or greater then that.

Refer attached Alerts->History.png and Monitoring->Metrics.png from attached files.zip.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments