---
title: Polling Frequency - JMX Monitoring Agent Configuration
description: "How polling frequency affects the Nodinite JMX Monitoring Agent: the trade-offs between alert latency, the Duration setting, and CPU and network overhead when reading JVM CPU and heap values."
---

# <i class="fal fa-clock" aria-hidden="true"></i> Polling Frequency

This troubleshooting guide explains how **polling frequency** affects **metrics collection**, **sampling rate**, **real-time monitoring**, and alert latency in 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], also referred to here as the JMX Agent.

## Understanding Polling Frequency

The polling frequency determines how often the JMX Monitoring Agent queries the Spring Boot Gateway for the current **CPU** and **heap** values of each JVM. A shorter **polling interval** provides faster detection, but increases **CPU overhead** and network traffic.

<div class="mermaid">
graph LR
  A["fa:fa-clock Polling Timer"] -->|"Every N seconds"| B["fa:fa-server JMX Monitoring Agent (IIS)"]
  B -->|"HTTP request"| C["fab:fa-java Spring Boot Gateway"]
  C -->|"JMX query"| D["fa:fa-display Target JVM"]
  D -->|"CPU and heap values"| C
  C -->|"JSON response"| B
  B -->|"Evaluation"| E{"fa:fa-bell CPU or free heap<br/>past threshold?"}
  E -->|"Yes, for Duration"| F["fa:fa-triangle-exclamation Warning or Error"]
  E -->|"No"| G["fa:fa-circle-check OK"]
  style A fill:#2678BD
  style F fill:#FFD525
  style G fill:#93d16d
</div>

*Diagram: Polling cycle showing how the JMX Monitoring Agent collects CPU and heap values from the Spring Boot Gateway at each polling interval; green OK within thresholds, yellow Warning or Error when a threshold is passed for the Duration.*

## Recommended Polling Intervals

| Scenario | Recommended Interval | Rationale |
|---|---|---|
| Production — critical JVMs | 30–60 seconds | Fast detection, minimal overhead |
| Production — standard JVMs | 60–120 seconds | Balance resolution and overhead |
| Test / QA environments | 120–300 seconds | Reduce monitoring overhead |
| Development environments | 300 seconds | Minimize noise during development |
| High-volume JVM clusters | 60 seconds | Consistent monitoring across cluster |

<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 Boomi Atoms running critical integration processes, a 30–60 second polling interval provides fast detection of CPU and memory issues that could impact message processing SLAs.</p></div>
</aside>

## Impact of Polling Frequency on Alerting

The polling interval directly affects the **minimum alert latency**, the time between a threshold breach and the first alert:

* A 60-second polling interval means an alert may be delayed up to 60 seconds after the threshold is first breached
* The Duration threshold (set in [JMX Configuration][]) adds additional time: Duration / Polling Interval = number of poll cycles required to fire an alert

### Example Alert Timing Calculation

With a 60-second polling interval and a 180-second Duration:

* <i class="fal fa-arrow-up-wide-short" aria-hidden="true"></i> **Threshold breaches at T=0**
* <i class="fal fa-magnifying-glass" aria-hidden="true"></i> **First detection at T=60** (first poll after breach)
* <i class="fal fa-bell" aria-hidden="true"></i> **Alert fires at T=180** (Duration satisfied across 3 poll cycles)
* <i class="fal fa-stopwatch" aria-hidden="true"></i> **Total latency: 3 minutes**

## Performance Considerations

### JVM Overhead

JMX queries impose minimal overhead on the target JVM. The two values the agent reads, CPU usage and heap memory, are counters that the JVM maintains internally. The overhead per poll is typically less than 1ms of CPU time.

### Network Traffic

Each poll generates a small HTTP request to the Spring Boot Gateway. For 10 JVMs polled every 60 seconds:

* Approximately 600 requests per hour per monitored JVM group
* Each response is typically 1–5 KB
* Total network overhead: negligible (< 1 MB/hour)

<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>If you monitor JVMs across a WAN link, for example remote data center JVMs, increase the polling interval to 120–300 seconds to reduce WAN traffic and accommodate higher network latency.</p></div>
</aside>

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

<i class="fal fa-server" aria-hidden="true"></i> [Multi-JVM Monitoring][]  
<i class="fal fa-display" aria-hidden="true"></i> [OS vs JVM Monitoring][]  

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

<i class="fal fa-sliders" aria-hidden="true"></i> [Environment-Specific Thresholds][]  
<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]  

[Correlate Heap Spikes]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/correlate-heap-spikes/
[Environment-Specific Thresholds]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/environment-specific-thresholds/
[JMX Configuration]:https://docs.nodinite.com/logging-and-monitoring/jmx/getting-started/configuration/
[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/
[OS vs JVM Monitoring]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/os-vs-jvm-monitoring/
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/overview/