---
title: Environment-Specific Thresholds - JMX Monitoring Configuration Guide
description: Configure environment-specific CPU and Heap Size thresholds for the Nodinite JMX Monitoring Agent. Learn recommended settings for Development, Test, and Production environments.
---

# <i class="fal fa-sliders" aria-hidden="true"></i> Environment-Specific Thresholds

This troubleshooting guide explains how to use **environment thresholds** for **production monitoring** and **alert tuning** with the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [JMX Monitoring Agent][JMXAgent].

## Understanding Threshold Settings

The JMX Monitoring Agent monitors two values per Application Host, **CPU** and **Heap Size** (free heap). The [JMX Configuration][Configuration] provides four threshold controls for each:

| Setting | Description |
|---|---|
| <i class="fal fa-square-check" aria-hidden="true"></i> **Enabled** | Activates monitoring for this value |
| ⚠️ **Warning Threshold %** | CPU: usage over this value raises a Warning. Heap Size: free heap below this value raises a Warning |
| ❌ **Error Threshold %** | CPU: usage over this value raises an Error. Heap Size: free heap below this value raises an Error |
| <i class="fal fa-stopwatch" aria-hidden="true"></i> **Duration (seconds)** | How long the value must stay past the threshold before the state changes |

The Duration setting is critical for reducing alert noise caused by temporary spikes during garbage collection, batch jobs, or deployments.

## Recommended Thresholds by Environment

### CPU Thresholds

| Environment | Warning % | Error % | Duration (s) | Rationale |
|---|---|---|---|---|
| Development | 80% | 95% | 30 | Allow high CPU for builds and debugging |
| Test / QA | 75% | 90% | 60 | Catch regressions without excessive noise |
| Staging | 70% | 85% | 120 | Mirror production behavior |
| Production | 65% | 80% | 120 | Early warning for sustained high CPU |

### Heap Size Thresholds

The Heap Size thresholds are the **minimum free heap** in percent: the state changes when free heap drops below the value.

| Environment | Warning % (free heap below) | Error % (free heap below) | Duration (s) | Rationale |
|---|---|---|---|---|
| Development | 20% | 8% | 60 | Allow exploratory testing |
| Test / QA | 25% | 12% | 120 | Catch memory leaks early |
| Staging | 28% | 15% | 180 | Validate production behavior |
| Production | 30% | 18% | 180 | Maximize early detection |

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>For batch-processing JVMs that intentionally use high heap, increase the Duration to 300–600 seconds to avoid alerting during expected batch execution peaks.</p></div>
</aside>

## Configuration Steps

Configure thresholds for each Application Host in the [JMX Monitoring Agent Configuration][Configuration]:

1. Open the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Administration panel.
2. Navigate to the [Monitoring Agent Configuration][Add or manage a Monitoring Agent Configuration].
3. Click **Configuration** to open Remote Configuration.
4. Select the **JMX** tab and locate the Application Host to configure.
5. Open the **Heap Size** tab for the host.
6. Set **Enabled**, **Warning Threshold %**, **Error Threshold %**, and **Duration**.
7. Open the **CPU** tab for the host.
8. Repeat the threshold settings.
9. Click **Save** to apply the monitoring configuration.

## Environment Identification

Use the **Environment** setting in the **Settings** tab of Remote Configuration to label each monitored JVM with its environment, for example: DEV, TEST, QA, or PROD. This label appears in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> alerts and helps operators quickly identify which environment triggered an alert.

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>The Environment name is cosmetic. It labels alerts but does not automatically apply different threshold profiles. Configure thresholds explicitly for each Application Host.</p></div>
</aside>

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

<i class="fal fa-clock" aria-hidden="true"></i> [Polling Frequency][]  
<i class="fal fa-server" aria-hidden="true"></i> [Multi-JVM Monitoring][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

<i class="fal fa-memory" aria-hidden="true"></i> [Heap Used vs Committed][]  
<i class="fal fa-chart-line" aria-hidden="true"></i> [Correlate Heap Spikes][]  
<i class="fal fa-circle-question" aria-hidden="true"></i> [JMX Troubleshooting Overview][Troubleshooting]  

[Add or manage a Monitoring Agent Configuration]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/add-or-manage-monitor-agent/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/jmx/getting-started/configuration/
[Correlate Heap Spikes]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/correlate-heap-spikes/
[Heap Used vs Committed]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/heap-used-vs-committed/
[JMXAgent]:https://docs.nodinite.com/logging-and-monitoring/jmx/overview/
[Multi-JVM Monitoring]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/multi-jvm-monitoring/
[Polling Frequency]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/polling-frequency/
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/overview/