How to alert on JVM memory less than 10% available
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
- select
JBoss EAP resource
->Alert
->New Definition
. - enter
Alert Properties
; - for
Condition Set
selectMetric
(If Condition) and from drop down listJVM Free Memory
; - 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 theInventory > resource > jvm > Memory subsystem > Alert
and set the condition according to your requirement. -
As an alert template (example for EAP 6 standalone):
Go toAdministration > 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