Time to read: 1 min
Exposing RSKj node metrics
1. Enable JMX for JConsole
Java Management Extensions (JMX) can be used to expose metrics for tools like JConsole.
- 
Add the following JVM options when starting your RSKj node to enable JMX:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9010
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false 
- Replace 
9010with the desired port number. - For production environments, enable authentication and SSL for security.
 
- Start your node with the above options and connect to it using JConsole:
 
- Open JConsole (
jconsolecommand). - Enter the hostname and port (e.g., 
localhost:9010). 
Note: For more details on using JConsole, refer to the official documentation: JConsole Documentation.