This topic tells ESA rule writers how to view memory metrics for rules. You can see estimated memory usage for each rule running on a server, and you can use this information to modify your rule statements and conditions if they use too much memory.
Rules can sometimes consume more memory than you expect, causing your ESA to slow down or stop. To see approximately how much memory a rule is using, you can configure memory metrics. Memory metrics allow you to view an estimated memory usage for each rule in the Health & Wellness System Stats browser (so you will need permissions to access this module). You can use this information to modify your rules to be more efficient.
At a high level, you will need to complete the following steps to use the memory metrics to troubleshoot memory usage for rules:
- Ensure that the memory metrics feature is enabled (via Explorer > CEP > Metrics > EnableStats). The Memory Metrics feature is enabled by default.
- Ensure you have the correct permissions to view the Health & Wellness module. For information on roles and permissions, see Role Permissions.
- View the memory statistics in Health & Wellness.
- (Recommended) Configure Health & Wellness ESA policies to send an email if memory thresholds are exceeded. See "Manage Policies" in the System Maintenance Guide for instructions on sending email notifications.
- Use the memory metrics data to modify rules to be more efficient, if necessary.
The following are requirements for using memory metrics:
- Memory Metrics feature is enabled (via Explorer > CEP > Metrics > EnableStats).
- The user must have the appropriate permissions to view Health & Wellness statistics.
- (Recommended) Configure the ESA Health & Wellness policy to send an email when memory thresholds are exceeded.
View Memory Metrics in the Health & Wellness System Monitoring Module
- Go to ADMIN > Health & Wellness > Monitoring.
- View the details for your ESA service.
- Click the Rules tab.
- You can view the average memory usage for each rule for the previous hour.
View Memory Metrics in the Health & Wellness System Stats Browser
- Go to ADMIN > Health & Wellness > System Stats Browser.
For component, select Event Stream Analysis. For category, enter ESA-Metrics.
The name of the rule is displayed in the Subitem field, and the memory usage is displayed in the Value column.
- To view the historical memory usage for the rule, click on the Historical Graph icon.