diff --git a/src/main/antora/modules/ROOT/assets/images/jconsole.png b/src/main/antora/modules/ROOT/assets/images/jconsole.png deleted file mode 100644 index 267aee8a4..000000000 Binary files a/src/main/antora/modules/ROOT/assets/images/jconsole.png and /dev/null differ diff --git a/src/main/antora/modules/ROOT/pages/migration-guide/migration-guide-4.x-to-5.x.adoc b/src/main/antora/modules/ROOT/pages/migration-guide/migration-guide-4.x-to-5.x.adoc index 4351cc70e..cc27f4695 100644 --- a/src/main/antora/modules/ROOT/pages/migration-guide/migration-guide-4.x-to-5.x.adoc +++ b/src/main/antora/modules/ROOT/pages/migration-guide/migration-guide-4.x-to-5.x.adoc @@ -57,3 +57,8 @@ static class Config extends AbstractMongoClientConfiguration { ---- Users upgrading from prior versions may choose `BigDecimalRepresentation.STRING` as default to retain previous behaviour. + +== JMX Support Discontinued. + +We recommend switching to Spring Boot https://docs.spring.io/spring-boot/reference/actuator/endpoints.html[Actuator Endpoints]. + diff --git a/src/main/antora/modules/ROOT/pages/mongodb/jmx.adoc b/src/main/antora/modules/ROOT/pages/mongodb/jmx.adoc index 8b98bcebd..d32756dfb 100644 --- a/src/main/antora/modules/ROOT/pages/mongodb/jmx.adoc +++ b/src/main/antora/modules/ROOT/pages/mongodb/jmx.adoc @@ -3,68 +3,6 @@ [NOTE] ==== -JMX support has been deprecated in 4.5 and will be removed in 5.0. + +JMX support has been removed in 5.0. + We recommend switching to Spring Boot https://docs.spring.io/spring-boot/reference/actuator/endpoints.html[Actuator Endpoints] and expose those over JMX if needed. ==== - -The JMX support for MongoDB exposes the results of running the 'serverStatus' command on the admin database for a single MongoDB server instance. It also exposes an administrative MBean, `MongoAdmin`, that lets you perform administrative operations, such as dropping or creating a database. The JMX features build upon the JMX feature set available in the Spring Framework. See link:{springDocsUrl}/integration.html#jmx[here] for more details. - -[[mongodb:jmx-configuration]] -== MongoDB JMX Configuration - -Spring's Mongo namespace lets you enable JMX functionality, as the following example shows: - -.XML schema to configure MongoDB -==== -[source,xml] ----- - - - - - - - - - - - - - - - - - - - - ----- -==== - -The preceding code exposes several MBeans: - -* `AssertMetrics` -* `BackgroundFlushingMetrics` -* `BtreeIndexCounters` -* `ConnectionMetrics` -* `GlobalLockMetrics` -* `MemoryMetrics` -* `OperationCounters` -* `ServerInfo` -* `MongoAdmin` - -The following screenshot from JConsole shows the resulting configuration: - -image::jconsole.png[]