Tomcat version 7.0.82 I have some questions about tomcat monitoring and jmx. The short version is that I am trying to get session information about users logged into my app.
I see documentation about different ways to get to the jmx beans but I don't understand the relationship between them. http://localhost:8080/ takes me to the tomcat homepage and I can click on the manager button and get to a page with some links to application folders (I've set my role). Do they use jmx beans? I can also do like: http://localhost:8080/manager/text/sessions?path=/. and it returns number of sessions. Is that accessing an mbean? How does that name relate to the folders under the tomcat manager folder? I can also access http://localhost:8080/manager/jmxproxy/?get=java.lang.type=Memory&att=HeapMemoryUsage and get memory usage stats. Is that accessing an mbean? I also don't see how these names relates to going to jconsole and looking at the mbean tab and accessing Catalina/Manager/examples/localhost. The names of the attributes in jconsole don't seem to match the names of the beans that I can access like the memory example above. I found that memory example above online, but where are these beans documented? The documentation in https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html said I could also access it through a url like: service:jmx:rmi:///jndi/rmi://localhost:8081/jmxrmi but I could not get that to work. Would that access the same bean(s) as the other examples? I can set CATALINA_OPTS to do the jmxremote enabling as described in , but what exactly is that enabling? Is that what enabled the mbeans that I accessed? Lastly, I created a listener (implements HttpSessionListener) and configured it in web.xml but when I set a breaklpoint in IDEA, it never hit it. When exactly does a session get created? when someone goes to any page on the host? When they log into the app? -- Greg Kaszycki 919-244-3789