I am connecting to tomcat over JMX. I wrote a simple JMX client to connect to tomcat and read different JMX MBean attributes to monitor tomcat. My problem is, I would like to know which port tomcat’s HTTP connector is listenting. Is there a way to get this details over JMX Mbean – without reading the server.xml file of tomcat. But to get it thru some attributes of one MBean ?
Share
The MBean is called something like
Catalina:type=ThreadPool,name=http-8080. As you can see the connector port is in the name.