---
title: What happens if the JMX Monitoring Agent stops? | Nodinite
description: What happens to WSO2 if the Nodinite JMX Monitoring Agent or its Spring Boot JMX Gateway stops? Nothing; JMX monitoring only reads JVM values. Alerting on WSO2 pauses until the agent is back.
---

# What happens if the Monitoring Agent service stops?

**WSO2 keeps running; only the monitoring pauses.** <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> monitors WSO2 with the [JMX Monitoring Agent][], which only reads CPU and heap values from the WSO2 JVM over JMX. Nothing in WSO2 depends on the agent.

## <i class="fal fa-puzzle-piece" aria-hidden="true"></i> The Parts That Can Stop

The JMX Monitoring Agent has two parts on the Agent Server ([Prerequisites][JMX Prerequisites]):

* the **JMX Monitoring Agent**, an IIS-hosted web application that the [Monitoring Service][] polls
* the **Spring Boot JMX Gateway**, a Java application that NSSM runs as a Windows Service and that connects to each JVM over JMX

If either part stops, or the network between them and WSO2 fails, the agent can't deliver new values. The Monitoring Service notices that it can't get an answer, and the WSO2 Resources stop reflecting the real state of the JVMs until the agent and gateway work again. Problems that start and end entirely during this monitoring gap aren't reported afterward.

## <i class="fal fa-shield-halved" aria-hidden="true"></i> Reduce the Risk

* Set the Windows Service for the Spring Boot JMX Gateway to start automatically, and let NSSM restart it on failure.
* Monitor the Agent Server itself, for example the gateway's Windows Service and [IIS][], with the [Windows Server Monitoring Agent][].
* Connect the [Monitor View][Monitor Views] that holds the WSO2 Resources to [Alarm Plugins][], so a lost connection to the agent reaches someone.

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

* <i class="fal fa-clipboard-check" aria-hidden="true"></i> [JMX Monitoring Agent prerequisites][JMX Prerequisites]  
* <i class="fal fa-bell" aria-hidden="true"></i> [Alarm Plugins][]  

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

* <i class="fal fa-list" aria-hidden="true"></i> [Troubleshooting Overview][]  
* <i class="fal fa-book" aria-hidden="true"></i> [WSO2 monitoring overview][Overview]  
* <i class="fal fa-stopwatch" aria-hidden="true"></i> [FAQ - Detection Speed][]  

[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[FAQ - Detection Speed]:https://docs.nodinite.com/logging-and-monitoring/wso2-enterprise-integrator-monitoring/troubleshooting/faq-how-quickly-does-nodinite-detect-when-a-wso2-servi/
[IIS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[JMX Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/jmx/overview/
[JMX Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/jmx/getting-started/prerequisites/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Overview]:https://docs.nodinite.com/logging-and-monitoring/wso2-enterprise-integrator-monitoring/overview/
[Troubleshooting Overview]:https://docs.nodinite.com/logging-and-monitoring/wso2-enterprise-integrator-monitoring/troubleshooting/overview/
[Windows Server Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/windows-server/overview/