---
title: JMX monitoring
description: Enable Java Management eXtension (JMX) clients to monitor PingAM on port 9999 using tools like jconsole or jvisualvm
component: pingam
version: 7.5
page_id: pingam:maintenance:monitoring-jmx
canonical_url: https://docs.pingidentity.com/pingam/8/maintenance/monitoring-jmx.html
llms_txt: https://docs.pingidentity.com/pingam/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
keywords: ["Monitoring"]
page_aliases: ["maintenance-guide:monitoring-jmx.adoc"]
superseded_by: https://docs.pingidentity.com/pingam/8/maintenance/monitoring-jmx.html
---

# JMX monitoring

You can configure AM to let you listen for Java Management eXtension (JMX) clients, by default on port 9999. Either go to Configure > Global Services > Monitoring in the AM admin UI and make sure both Monitoring Status and Monitoring RMI interface status are enabled, or use the `ssoadm` command:

```bash
$ ssoadm \
set-attr-defs \
--servicename iPlanetAMMonitoringService \
--schematype Global \
--adminid uid=amAdmin,ou=People,dc=openam,dc=forgerock,dc=org \
--password-file /tmp/pwd.txt \
--attributevalues iplanet-am-monitoring-enabled=true \
iplanet-am-monitoring-rmi-enabled=true
```

A number of tools support JMX, including `jvisualvm` and `jconsole`. When you use `jconsole` to browse AM MBeans for example, the default URL for the AM running on the local system is `service:jmx:rmi:///jndi/rmi://localhost:9999/server`.

```bash
$ jconsole service:jmx:rmi:///jndi/rmi://localhost:9999/server &
```

To browse MBeans, connect to your web application container, and go to the AM MBeans. By default, JMX monitoring for the container is likely to be accessible only locally, using the process ID.

![You can monitor an instance over JMX.](_images/jconsole-to-openam.png)Figure 1. JConsole browsing MBeans

Also refer to [Monitoring and Management Using JMX](https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html) for instructions on how to connect remotely, how to use SSL, and so on.

|   |                                                                                                                                                                                                                                                                |
| - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | JMX has a limitation in that some Operations and CTS tables cannot be properly serialized from AM to JMX. As a result, only a portion of AM's monitoring information is available through JMX.Use Prometheus, Graphite, or common REST monitoring if possible. |

For monitoring metrics reference, refer to [Monitoring metrics](monitoring-metrics.html).
