I switched from Trinidad to justTomcat a few weeks ago so I could follow instructions I found for enabling JMX monitoring through an SSH tunnel in order to troubleshoot performance problems. Namely, I added the following xml tag to tomcat's server.xml:
where JMX_PORT_1 and JMX_PORT_2 are the ports I forward over ssh.
I also made sure catalina-jmx-remote.jar was in tomcat's lib folder.
I've fixed my app's performance problems and would like to switch back to Trinidad, but I would like to keep the JMX monitoring. How can I add JMX monitoring to trinidad so that it is easy to use over ssh tunnel? Is it easy to add the equivalent Listener and catalina-jmx-remote.jar to trinidad?
I took a look at trinidad_lifecycle_extension but I received no response on an issue I opened a few weeks ago asking how to set useLocalPorts on the JmxRemoteLifeCycleListener: https://github.com/trinidad/trinidad_lifecycle_extension/issues/1
. I suspect trinidad_lifecycle_extension is inactive as it hasn't seen a commit in 2 years.
Any help would be greatly appreciated. It would be great to be back on Trinidad!