Polling Frequency
Section titled “ Polling Frequency”This troubleshooting guide explains how polling frequency affects metrics collection, sampling rate, real-time monitoring, and alert latency in the Nodinite JMX Monitoring Agent, also referred to here as the JMX Agent.
Understanding Polling Frequency
Section titled “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.
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
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
Section titled “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 |
Impact of Polling Frequency on Alerting
Section titled “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
Section titled “Example Alert Timing Calculation”With a 60-second polling interval and a 180-second Duration:
- Threshold breaches at T=0
- First detection at T=60 (first poll after breach)
- Alert fires at T=180 (Duration satisfied across 3 poll cycles)
- Total latency: 3 minutes
Performance Considerations
Section titled “Performance Considerations”JVM Overhead
Section titled “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
Section titled “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)
Next Steps
Section titled “ Next Steps” Multi-JVM Monitoring
OS vs JVM Monitoring
Related Topics
Section titled “ Related Topics” Environment-Specific Thresholds
Correlate Heap Spikes
JMX Troubleshooting Overview