---
title: Enable JMX Remote Monitoring - JVM Configuration Guide
description: How to enable JMX remote monitoring in JVM applications including Boomi Atoms, Spring Boot services, and custom Java applications. Configure JMX ports, authentication, and SSL settings.
---

# <i class="fal fa-unlock" aria-hidden="true"></i> Enable JMX Remote Monitoring

This troubleshooting guide explains how to **enable JMX**, configure a **JMX remote port**, and choose the right **JMX authentication** and **JMX SSL** settings for **remote monitoring**.

## Understanding JMX Remote Monitoring

JMX (Java Management Extensions) is a built-in Java technology for monitoring and managing JVM applications. JMX remote monitoring exposes this data over a network port so external monitoring tools like the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Spring Boot Gateway can collect it.

<div class="mermaid">
graph LR
  A["fab:fa-java JVM Application<br/>(JMX enabled on port 5002)"]
  B["fa<i class="fal fa-server" aria-hidden="true"></i> Spring Boot Gateway<br/>(JMX client)"]
  C["fa<i class="fal fa-monitor-waveform" aria-hidden="true"></i> JMX Monitoring Agent (IIS)"]
  D["fa<i class="fal fa-display" aria-hidden="true"></i> Nodinite Monitoring"]
  B -->|JMX RMI: port 5002| A
  C -->|HTTP: 8080| B
  D -->|HTTP/HTTPS| C
  style A fill:#93d16d
  style B fill:#2678BD
</div>

*Diagram: JMX remote monitoring flow from a JVM application through Spring Boot Gateway to the Nodinite [JMX Monitoring Agent][JMXAgent].*

## Required JVM Startup Arguments

Add the following **startup arguments** and **JVM flags** to enable JMX remote monitoring:

### Minimal Configuration for Development

```bash
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=5002
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
```

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p>The unauthenticated, non-SSL configuration is suitable for development and monitoring within isolated internal networks only. Do not use this configuration for JVMs exposed to untrusted networks.</p></div>
</aside>

### Production Configuration with Authentication

For production environments, enable JMX authentication:

```bash
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=5002
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.password.file=/path/to/jmxremote.password
-Dcom.sun.management.jmxremote.access.file=/path/to/jmxremote.access
```

## Enabling JMX in Boomi Atoms

For Boomi Atom deployments, enable JMX through the Boomi AtomSphere console:

1. Log in to the Boomi AtomSphere portal.
2. Navigate to **Manage** > **Atom Management**.
3. Select the Atom to configure.
4. Click **Properties** > **Advanced**.
5. Add JMX Remote Authentication, JMX Remote Port, and JMX Remote SSL settings.
6. Restart the Atom after saving.

**Required Boomi Atom properties:**

* `com.sun.management.jmxremote.port=5002`
* `com.sun.management.jmxremote.authenticate=false`
* `com.sun.management.jmxremote.ssl=false`

<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>Restart the Boomi Atom after applying JMX configuration changes. Changes do not take effect until the Atom process restarts.</p></div>
</aside>

## Verifying JMX Remote Access

Verify that JMX is accessible from the Spring Boot Gateway host using a simple connectivity test:

```bash
# Check JMX port is listening on the target server
netstat -an | findstr :5002

# Test connectivity from Spring Boot Gateway host (using PowerShell)
Test-NetConnection -ComputerName <JVM_HOST> -Port 5002
```

## Common JMX Enablement Issues

### JMX connection refused

**Cause:** JMX is not enabled or the port is blocked by a firewall.

**Resolution:**

1. Verify the JVM started with `-Dcom.sun.management.jmxremote.port=5002`
2. Check that port 5002 is open in the host firewall (see the [firewall settings][Prerequisites firewall])
3. Confirm the JVM process is running with `jps -l`

### JMX connects but Spring Boot Gateway reports timeout

**Cause:** The RMI callback IP is set to `127.0.0.1` instead of the host network IP.

**Resolution:** Add `-Djava.rmi.server.hostname=<HOST_IP>` to the JVM startup arguments, replacing `<HOST_IP>` with the IP address reachable by the Spring Boot Gateway.

### Authentication error when connecting to JMX

**Cause:** The `jmxremote.password` file has incorrect permissions or the credentials are wrong.

**Resolution:** Ensure the password file is readable only by the JVM process owner. Verify credentials match between the password file and the Spring Boot Gateway configuration.

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

<i class="fal fa-file-invoice-dollar" aria-hidden="true"></i> [Costs and Licensing][]  
<i class="fal fa-gears" aria-hidden="true"></i> [JMX Configuration][Configuration]  

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

<i class="fab fa-docker" aria-hidden="true"></i> [Docker Container Monitoring][]  
<i class="fal fa-server" aria-hidden="true"></i> [Multi-JVM Monitoring][]  
<i class="fab fa-java" aria-hidden="true"></i> [JMX Monitoring Agent][JMXAgent]
<i class="fal fa-circle-question" aria-hidden="true"></i> [JMX Troubleshooting Overview][Troubleshooting]  

[Configuration]:https://docs.nodinite.com/logging-and-monitoring/jmx/getting-started/configuration/
[Costs and Licensing]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/costs-and-licensing/
[Docker Container Monitoring]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/docker-container-monitoring/
[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/
[Prerequisites firewall]:https://docs.nodinite.com/logging-and-monitoring/jmx/getting-started/prerequisites/#fa-shield-check-firewall
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/overview/