Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an MBean be run under Tomcat?

We have 2 applications that run under JBoss. I am looking for a way to reduce the overhead of the server. The main app runs under Tomcat. The other app is made up of MBeans. Is there a way to run MBeans under Tomcat?

Alternative suggestions are appreciated.

like image 366
Joshua Avatar asked Dec 23 '22 13:12

Joshua


2 Answers

MBeans are a part of the JMX specification which is included in the JRE. It should be possible to run MBeans under Tomcat. Tomcat 5 or later provides an MBean server.

like image 112
Martin OConnor Avatar answered Jan 03 '23 03:01

Martin OConnor


You can use the following JVM arguments to startup Tomcat with MBean enabled

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=4444 (could be anything)
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
like image 21
utku.utkan Avatar answered Jan 03 '23 03:01

utku.utkan