JMX Monitoring

 

MailArchiva provides monitoring information via the standard Java Monitoring Extensions (JMX) interface. JMX is a common interface that monitoring applications, such as Nagios, use to obtain performance statistics on the operation of Java server applications.

 


Linux

 

Edit the startserver script in /opt/mailarchiva/server/startserver. Add the following to the CATALINA_OPTS variable
 

-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=12345 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \

 

Restart the server.

Assuming you are using a GUI based Linux desktop, run the program Jconsole located in /usr/local/mailarchiva/jre64/bin
 

 

cd /usr/local/mailarchiva/jre64/bin
./jconsole

 

JConsole Start

 

 


In the Remote Process field, enter "localhost:12345" and the JMX process monitor should appear.
 

 

Windows

 

Double click the Archiva Task Tray icon. Select the Java tab and add the following startup options:
 

 

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=12345
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

 

Restart the server.

Run the jconsole program in C:\Program Files\MailArchiva\Server\jre\bin

JConsole Start


In the Remote Process field, enter "localhost:12345" and the JMX process monitor should appear.

 


Monitoring

 

JConsole provides an indication of the heap usage, no. of threads and CPU activity.

Monitor


Monitor2

Archiva exposes key system statistics via its MBean interface.

Monitor 3

 

© 2005 - 2024 ProProfs

Found this information useful? Visit mailarchiva.com to learn more about MailArchiva.

-