Monitoring the server using JConsole
Set up JConsole to monitor the server using a remote process.
Steps
-
Start the server.
Example:
$ bin/start-server
-
Enable the Java Management Extensions (JMX) Connection handler using
dsconfig
with theset-connection-handler-prop
option.The handler is disabled by default.
Include the LDAP connection parameters, such as host name, port, bindDN, and bindPassword.
Example:
$ bin/dsconfig set-connection-handler-prop \ --handler-name "JMX Connection Handler" --set enabled:true
-
Assign privileges to a regular user account with the
ldapmodify
tool.Do not use a root user account, as using a root user account would be a security risk.
Example:
This example grants
jmx-read
,jmx-write
, andjmx-notify
privileges to the user.$ bin/ldapmodify --hostname server1.example.com --port 1389 \ --bindDN "cn=Directory Manager" --bindPassword secret dn: uid=admin,dc=example,dc=com changetype: modify replace: ds-privilege-name ds-privilege-name: jmx-read ds-privilege-name: jmx-write ds-privilege-name: jmx-notify
-
In the Java Monitoring & Administrative Console, click Remote Process, and enter the following JMX URL using the host and port of your server.
service:jmx:rmi:///jndi/rmi://<host>:<port>/com.unboundid.directory.server.protocols.jmx.client-unknown
-
In the Username and Password fields, enter the bind distinguished name (DN) and password for a user that has at least the
jmx-read
privilege. -
Click Connect.
-
Click com.unboundid.directory.server, and expand the
rootDSE
node and thecn-monitor
sub-node. -
Select a monitoring entry.