title: How to enable Tomcat's JMX Catalina support?
body: <p>I am using Zabbix for monitoring metrics, I have a Java Spring application and I want to see all metrics such as Tomcat's metrics. When I use Zabbix for monitoring, some items of Zabbix are not working. Especially Catalina support. I tried to see Catalina metrics on Jconsole, but I did receive any data. I don't know where I should add any libraries or components in order to get metrics.</p>
  
  <p>I configured Spring Jmx, Rmi beans. But anyway I have not found any answers. It did not help me to solve the problem.
  I used this <a href="https://stackoverflow.com/questions/29412072/how-to-access-spring-boot-jmx-remotely">recource</a>. Unfortunately, I could not solve my problem.</p>
  
  <p>I tried to add this.</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat-catalina-jmx-remote&lt;/artifactId&gt;
      &lt;version&gt;8.5.9&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Before running the server I added <pre>-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port= -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=</pre></p>
  
  <p>I expect that monitoring tomcat should be worked without any additional codes, But It is not working. Basically, I need Tomcat's received and sent bytes. How should I do this?</p>