JMX Monitoring of GlassFish Servers
Posted
by tjquinn
on Oracle Blogs
See other posts from Oracle Blogs
or by tjquinn
Published on Wed, 26 Sep 2012 20:46:36 +0000
Indexed on
2012/09/26
21:44 UTC
Read the original article
Hit count: 322
/GlassFish
Did you ever wonder what this message in your GlassFish server.log file means? It means you can monitor any GlassFish server process, remotely or locally, using any standard Java Management Extensions (JMX) client. Examples: jconsole or jvisualvm. Copy the part of the log message that starts with "service:" into the Add JMX Connection dialog of jvisualvm: or into the New Connection dialog of jconsole: (The full string is truncated in the on-screen display, but if you copied from the server.log and pasted into the form it should all be there.) The examples above are for a DAS, and your host will probably be different. The server.log files for other GlassFish servers (instances) will have similar log entries giving the JMX connection string to use for those processes. Look for the host and/or port to be different. Note a few things about security:
JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://192.168.2.102:8686/jndi/rmi://192.168.2.102:8686/jmxrmi
© Oracle Blogs or respective owner