Answers for "tomcat check sessions mbean"

0

tomcat check sessions mbean

MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
ObjectName objectName = new ObjectName("Catalina:type=Manager,context=/,host=localhost");
int activeSessions = (Integer) mBeanServer.getAttribute(objectName, "activeSessions");
Posted by: Guest on October-05-2021

Browse Popular Code Answers by Language