We want to monitor jvm metrics of our tomcat instances. We think jolokia is a good solution since there is a nice Nagios (checkMK) plugin for it. I was wondering, if we use the spring agent option, specifying the dependency in our pom.
From what I understand this will launch the agent when the application starts. Is it possible to specify in any tomcat properties file if we want the agent to start or not ? Because otherwise if for some reason we want to stop the agent there is no other way but to redeploy the app right ?