Skip to content

Commit

Permalink
Merge pull request #5119 from AmshikaH/master
Browse files Browse the repository at this point in the history
[6.1][7.0] Update JMX docs
  • Loading branch information
AmshikaH authored Feb 26, 2025
2 parents 866ebff + be0afd0 commit 87e61bd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,25 @@ rmi_server_start = true

You can enable JMX for a datasource by adding the `jmxEnabled` as `true` element to the datasource configuration. For example, to enable JMX for the default Carbon datasources, add the following property to the `deployment.toml` file (stored in the `<IS_HOME>/repository/conf/` directory).

!!! abstract "For SHARED_DB"
``` toml
[database.shared_db]
jmx_enable = true
```

!!! abstract "For IDENTITY_DB"
``` toml
[database.identity_db.pool_options]
jmxEnabled = true
```

If you have a paid subscription, you do not have to use the pool options configuration as shown above. You may instead use the following configurations similar to the other datasources such as the shared database by applying update level 223 for WSO2 Identity Server 6.1.0 using the WSO2 Update Tool. For more information on updating WSO2 Identity Server using the WSO2 Update Tool, see [WSO2 Updates](https://updates.docs.wso2.com/en/latest/updates/overview/). If you do not have a paid subscription, you can use this configuration with version 7.1.0 of WSO2 Identity Server once released.

!!! abstract "For SHARED_DB"
``` toml
[database.shared_db]
[database.identity_db]
jmx_enable = true
```


## Monitor WSO2 Identity Server with JConsole

Jconsole is a JMX-compliant monitoring tool which comes with the Java Development Kit (JDK) 1.5 and newer versions. You can find this tool inside your `<JDK_HOME>/bin` directory. See the instructions on [Installing the JDK](https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html) for more information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,22 @@ rmi_server_start = true

You can enable JMX for a datasource by adding the `jmxEnabled` as `true` element to the datasource configuration. For example, to enable JMX for the default Carbon datasources, add the following property to the `deployment.toml` file (stored in the `<IS_HOME>/repository/conf/` directory).

!!! abstract "For SHARED_DB"
``` toml
[database.shared_db]
jmx_enable = true
```

!!! abstract "For IDENTITY_DB"
``` toml
[database.identity_db.pool_options]
jmxEnabled = true
```

If you have a paid subscription, you do not have to use the pool options configuration as shown above. You may instead use the following configurations similar to the shared database by applying update level 91 for WSO2 Identity Server 7.0.0 using the WSO2 Update Tool. For more information on updating WSO2 Identity Server using the WSO2 Update Tool, see [WSO2 Updates](https://updates.docs.wso2.com/en/latest/updates/overview/). If you do not have a paid subscription, you can use this configuration with the next version of WSO2 Identity Server when it is released.

!!! abstract "For SHARED_DB"
``` toml
[database.shared_db]
[database.identity_db]
jmx_enable = true
```

Expand Down

0 comments on commit 87e61bd

Please sign in to comment.