---
title: JMX Monitoring Agent Prerequisites - Software Requirements and Firewall Configuration
description: Prerequisites for installing the Nodinite JMX Monitoring Agent. Covers software requirements, Windows user rights, firewall configuration, and network ports for monitoring JVM CPU and memory.
---

<a class="nodinite-release-notes" href="https://portal.nodinite.com/marketplace/monitoringAgents/jmx" data-url="https://portal.nodinite.com/marketplace/monitoringAgents/jmx"><i class="fal fa-fw fa-file-alt" aria-hidden="true"></i> Release Notes</a>

# <i class="fal fa-square-plus" aria-hidden="true"></i> Prerequisites for the JMX Monitoring Agent

>This page describes the prerequisites to successfully install and run 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] to Monitor JVM **CPU** and **Memory**.

## <i class="fal fa-box-check" aria-hidden="true"></i> Software Requirements

The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> JMX Monitoring Agent is a hosted Windows Service using **NSSM** and is usually installed on the JVM application server.

|Product|Version/Edition|  
|---|---|  
|<i class="fab fa-windows" aria-hidden="true"></i> Windows Server with [IIS][IIS Overview]|Windows 2025</br><strong>Windows 2022</strong></br>Windows 2019</br>Windows 2016</br>Windows 2012 R2|  
|<i class="fal fa-file-prescription" aria-hidden="true"></i> ASP.NET Core Runtime v6 <strong>Hosting Bundle</strong>|[.NET 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>|  
|<i class="fab fa-java" aria-hidden="true"></i> JVM|[OpenJDK](https://jdk.java.net/)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>|  
|<i class="fal fa-gear" aria-hidden="true"></i> NSSM|[Download](https://nssm.cc/download/)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>|  

For obvious reasons, **JMX Monitoring** must be [enabled](https://docs.oracle.com/javadb/10.10.1.2/adminguide/radminjmxenabledisable.html)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> in the JVM Application to monitor.

Below is an example configuration with parameters to enable JMX Monitoring using an unauthenticated connection not using SSL on a Java Application:

``` python
java -Dcom.sun.management.jmxremote.port=5002
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false 
-jar $CONTOSO_HOME/lib/ContosoApp_v1337.jar server start
```

<h2 id="what-windows-user-rights-does-the-jmx-monitoring-agent-require"><i class="fab fa-windows" aria-hidden="true"></i> What Windows User Rights does the JMX Monitoring Agent require?</h2>

The JMX Monitoring Agent runs as a **Windows Service** (using NSSM) and the Spring Boot Gateway component runs as a separate Java process.

### Service Account Requirements

* The service account must have `Log on as a service` rights - see [How to set Logon as a Service right][]
* Use a local named account or domain account (preferred)
* The account needs network access to communicate with the Spring Boot Gateway (typically localhost) and the [Monitoring Service][]

### Spring Boot Gateway Requirements

* The Gateway runs as a Java process and requires network access to target JVM applications via JMX ports
* Ensure the account running the Gateway has appropriate file system permissions for log files and configuration

## <i class="fal fa-shield-check" aria-hidden="true"></i> Firewall

Where you install 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] and its Spring Boot Gateway in relation to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Monitoring Service][] and your JVM applications determines your firewall configuration. The diagram shows every host involved, with the agent and the gateway on their own server; each arrow starts at the side that opens the connection.

<div class="mermaid">
graph LR
    subgraph "Nodinite Core Services Server"
        roMonitoringService(fa:fa-watch-fitness Monitoring Service)
    end
    subgraph "Nodinite Agent Server"
        roJMXAgent(fa:fa-monitor-waveform JMX Monitoring Agent)
        roGW(fa:fa-hard-drive JMX API Gateway, Spring Boot .jar)
    end
    subgraph "Target: JVM application"
        roJVM(fab:fa-java Java Virtual Machine)
    end
    subgraph "Target: Boomi Atom"
        roBoomiAtom(fa:fa-atom Boomi Atom)
    end
    subgraph "DNS Server"
        roDNS(fa:fa-signs-post DNS)
    end
    roMonitoringService --> |"Agent IIS site port"| roJMXAgent
    roJMXAgent --> |"8080"| roGW
    roGW --> |"JMX port, e.g. 5002"| roJVM
    roGW --> |"JMX port, e.g. 5002"| roBoomiAtom
    roJMXAgent --> |"53"| roDNS
</div>

*Network diagram: the Monitoring Service calls the agent, the agent calls the Spring Boot Gateway (usually on the same server), and the gateway connects to each JVM over JMX.*

<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>When the agent runs on the Core Services Server, you need no firewall rule between the <a href="https://docs.nodinite.com/core-services/monitoring-service/overview/">Monitoring Service</a> and the agent. When the gateway runs on the Agent Server (the typical installation), the agent → gateway hop is loopback (127.0.0.1) traffic.</p></div>
</aside>

### Between the Monitoring Service and the JMX Monitoring Agent

The [Monitoring Service][] opens every connection; the agent never calls it. The agent is an IIS web site or web application ([Install][]); the port is the HTTP/HTTPS binding you give it in IIS.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Inbound|Core Services Server|Agent Server|TCP (HTTPS/HTTP)|Agent IIS site port|Poll the agent and send configuration|80/443 or the custom binding of the agent's IIS site (e.g. 8443). Only when the agent is on a **remote** server|  

### Between the JMX Monitoring Agent and the Spring Boot Gateway

The agent calls the JMX API Gateway (a Spring Boot `.jar` that NSSM runs as a Windows Service) to retrieve monitoring data.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|Agent Server (Spring Boot Gateway)|TCP (HTTP)|8080|JMX API Gateway communication|Default Spring Boot port. Loopback when both run on the same server; open it only if you host the gateway on another server|  
|Inbound|Agent Server (Spring Boot Gateway)|Agent Server|TCP|8080|Response traffic|Automatically allowed by stateful firewall inspection|  

<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><strong>Custom Gateway Port</strong>: The Spring Boot Gateway port can be configured in the application properties. If you use a custom port (e.g., 9000), adjust the agent configuration and firewall rules accordingly.</p></div>
</aside>

### Between the Spring Boot Gateway and the JVM applications

The gateway connects to each target JVM over JMX (RMI) on the **Port** set per JVM in the [Configuration][] guide.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server (Spring Boot Gateway)|Target (JVM application, Boomi Atom)|TCP|5002 (default)|JMX connection to JVM|Port depends on `-Dcom.sun.management.jmxremote.port`; set `-Dcom.sun.management.jmxremote.rmi.port` to the same value so only one port is needed|  
|Inbound|Target (JVM application, Boomi Atom)|Agent Server (Spring Boot Gateway)|TCP|5002 (default)|Response traffic|Automatically allowed by stateful firewall inspection|  

<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><strong>JMX Port Configuration</strong>: Common JMX ports include 5002, 9999, 7199 (Cassandra), 9010 (Kafka). Each JVM on the same host needs its own port (see <a href="https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/multi-jvm-monitoring/">Multi-JVM Monitoring</a>); a JVM in a container needs the port published to the host (see <a href="https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/docker-container-monitoring/">Docker Container Monitoring</a>).</p></div>
</aside>

<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><strong>JMX Authentication and SSL</strong>: For production environments, enable JMX authentication and SSL/TLS encryption. This may require additional certificate configuration and firewall rules for secure JMX communication.</p></div>
</aside>

### Between the servers and DNS

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|DNS Server|TCP/UDP|53|Name resolution|Resolve the JVM hosts, the gateway (if remote), and the Core Services Server. A local `hosts` file can replace DNS|  
|Outbound|Core Services Server|DNS Server|TCP/UDP|53|Name resolution|Resolve the Agent Server|  

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>Stateful Firewalls</strong>: Most Windows Firewall implementations are stateful, so response traffic for established outbound connections is allowed automatically. The inbound response rules above are for reference and troubleshooting.</p></div>
</aside>

___

## <i class="fal fa-question" aria-hidden="true"></i> Frequently asked questions

Additional solutions to common problems and the FAQ for 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] exist in the [Troubleshooting][] user guide.

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

<i class="fal fa-rocket" aria-hidden="true"></i> [Installing the JMX Monitoring Agent][Install]  
<i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Add or manage a Monitoring Agent Configuration][]  

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

<i class="fal fa-list" aria-hidden="true"></i> [JMX Monitoring Agent][JMXAgent]  
<i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Monitoring Agents][]  
<i class="fal fa-gears" aria-hidden="true"></i> [Administration][]  

[Add or manage a Monitoring Agent Configuration]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/add-or-manage-monitor-agent/
[Administration]:https://docs.nodinite.com/administration/overview/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/jmx/getting-started/configuration/
[Docker Container Monitoring]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/docker-container-monitoring/
[How to set Logon as a Service right]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/logon-as-a-service-right/
[IIS Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[Install]:https://docs.nodinite.com/logging-and-monitoring/jmx/getting-started/install/
[JMXAgent]:https://docs.nodinite.com/logging-and-monitoring/jmx/overview/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Multi-JVM Monitoring]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/multi-jvm-monitoring/
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/jmx/troubleshooting/overview/