---
title: Java agent JMX settings
source: https://docs.newrelic.com/docs/apm/agents/java-agent/configuration/java-agent-configuration-jmx-settings
---

JMX settings control how the agent collects metrics from JMX-enabled application servers and services.

> #### 💡 TIP
>
> Back to the full settings index: [Java agent configuration](https://docs.newrelic.com/docs/apm/agents/java-agent/configuration/java-agent-configuration-config-file)

## JMX

To set these options, use the `jmx` section. To [override](https://docs.newrelic.com/docs/apm/agents/java-agent/configuration/java-agent-configuration-config-file#System_Properties) them, use a `newrelic.config.jmx` prefixed system property.

The Java agent uses JMX to collect JVM data. Additionally the agent can expose linking metadata over JMX that can be used by other tracing systems.

**enabled**

| Type    | Boolean |
| ------- | ------- |
| Default | `true`  |

This setting can be used to turn on or off all JMX functionality.

**linkingMetadataMBean**

| Type    | Boolean |
| ------- | ------- |
| Default | `false` |

This setting can be enabled to allow the Java agent to expose linking metadata over remote JMX.

> #### ⚠️ IMPORTANT
>
> This applies to Java agent [version 6.1.0 or higher](https://docs.newrelic.com/docs/release-notes/agent-release-notes/java-release-notes).
