Skip to content
Documentation
Updated 3 minutes to read
Markdown

This troubleshooting guide explains the difference between heap used and heap committed memory so you can improve memory monitoring with the Nodinite JMX Monitoring Agent.

The JVM manages JVM memory in a heap divided into regions. Two key metrics help you understand heap health and set each monitoring threshold correctly:

Metric Description When It Changes
Heap Used Memory actively occupied by live objects After every garbage collection cycle
Heap Committed Memory reserved (committed) by the OS for the JVM Grows up to -Xmx as demand increases
Heap Max Maximum heap size configured via -Xmx Set at JVM startup, rarely changes
graph LR subgraph "JVM Heap" A["Heap Used (live objects)"] B["Heap Committed (reserved by OS)"] C["Heap Max (-Xmx limit)"] end A -->|"grows until GC"| B B -->|"grows until"| C C -->|"exceeded triggers"| D["OutOfMemoryError"] style A fill:#93d16d style B fill:#FFD525 style C fill:#c33d34 style D fill:#c33d34

Diagram: Relationship between heap used (green), committed (yellow), and max (red), showing how unchecked growth leads to OutOfMemoryError.

The Nodinite JMX Monitoring Agent monitors free heap in percent, the part of the heap not occupied by live objects, and compares it with the Heap Size thresholds in the Configuration. The thresholds are the minimum free heap: the JVM Resource changes to Warning or Error when free heap drops below them for the configured Duration. Low free heap is the most reliable sign of memory pressure and the basis for a monitoring threshold that catches heap exhaustion early. The agent doesn't report heap used, committed, and max as separate values.

Environment Warning Threshold % (free heap below) Error Threshold % (free heap below) Notes
Development 20% 10% Allow higher usage for testing
Test / QA 25% 15% Balance early detection with noise
Production 30% 20% Detect heap exhaustion early

Why does heap used spike after deployments?

Section titled “Why does heap used spike after deployments?”

New application code loaded into memory after a deployment increases used memory temporarily. Allow 5–10 minutes for the JVM to stabilize, or set a Duration long enough that the warm-up doesn't change the Resource state.

Why is heap committed higher than heap used?

Section titled “Why is heap committed higher than heap used?”

The JVM reserves committed memory beyond active memory allocation to avoid frequent OS memory allocation calls. Committed memory grows as heap demand increases but does not shrink automatically until a full GC or JVM restart.

Adjust thresholds after:

  • Adding new integration flows that process larger message payloads
  • Upgrading the JVM or application framework
  • Observing repeated false-positive warnings during normal operation

Supported Garbage Collectors
Correlate Heap Spikes

Environment-Specific Thresholds
JMX Troubleshooting Overview
JMX Monitoring Agent

...

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