Tomcat (also known as Apache Tomcat or Tomcat Server) is an open source Java Servlet Container. You can use Metricly’s Java agent to collect information on your Tomcat Server.


If you haven’t installed the Java agent already, see the instructions on this page for how to install it. If you need to disable the Java integration or view the unique API key assigned to your account, navigate to the Integrations page under the user account drop-down menu and click the integration designated as Java under the Integration column.
  1. Navigate to the file.
  2. Comment out the Default collection scripts section.
    # Default collection of jvm metrics
    # scripts = jvm.bsh
  3. Uncomment the Apache Tomcat scripts section.
    # Example: Apache Tomcat configuration with CAS server
    scripts = jvm.bsh, zabbix.bsh, apache/tomcat.bsh, apps/cas.bsh
  4. Configure Tomcat to load the Java agent. This is often configured via the or tomcat.conf files.
  5. Restart your app server.