Skip to content
Documentation
Updated 3 minutes to read
Markdown

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.

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.

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
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.

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

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

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

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.

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)

Multi-JVM Monitoring
OS vs JVM Monitoring

Environment-Specific Thresholds
Correlate Heap Spikes
JMX Troubleshooting Overview

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...