GithubHelp home page GithubHelp logo

prashantabmc / boundary-plugin-apache-tomcat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from boundary/meter-plugin-apache-tomcat

0.0 2.0 1.0 1.73 MB

License: Apache License 2.0

Java 100.00%

boundary-plugin-apache-tomcat's Introduction

TrueSight Pulse Apache Tomcat Plugin

Collects metrics from a Apache Tomcat instance

Prerequisites

OS Linux Windows SmartOS OS X
Supported v v v

Boundary Meter versions v4.2 or later

Plugin Setup

In order for the plugin to collect statistics from Tomcat you need to configure JMX endpoint for Tomcat installed. To set the CATALINA_OPTS environment variable (assuming JMX endpoint as 8999 of your localhost)

  • On Windows (if Tomcat is running as service): Enable Apache Service Manager (commons daemon service manager) for the installed service using the command:

          tomcat7w.exe
    
    
    This should start Apache Service Monitor program on your system tray. Click on its icon. Select  on the 'Java' tab and append the following on the 'Java Options' text box, one option per line:
    
    
          -Dcom.sun.management.jmxremote.port=8999
          -Dcom.sun.management.jmxremote.authenticate=false
          -Dcom.sun.management.jmxremote.ssl=false
    
  • On Windows:

    • set CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999
      -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
      -Djava.rmi.server.hostname=localhost"
  • On Linux:

    • $ CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999
      -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
      -Djava.rmi.server.hostname=localhost"
    • $ export CATALINA_OPTS

NB: To set the above mentioned environment variable, you can create setenv.bat or setenv.sh, depending on your OS, inside CATALINA_HOME/bin and restart the tomcat. If you are monitoring a remote tomcat instance, in that case, you need to set

On Windows:
 
	-Djava.rmi.server.hostname=hostname

On Linux:

	-Djava.rmi.server.hostname=$HOSTNAME

If you have set credentials for JMX Port, in that case you have to set

-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=$JAVA_HOME/jre/lib/management/jmxremote.password
-Dcom.sun.management.jmxremote.access.file=$JAVA_HOME/jre/lib/management/jmxremote.access

Plugin Configuration Fields

Field Name Description
Host Host of the Tomcat JMX endpoint
Port Port of the Tomcat JMX endpoint. Defaults to 8999
Username Username to access the Tomcat JMX endpoint
Password Password to access the Tomcat JMX endpoint
Source The Source to display in the legend for the metrics data. It will default to the hostname of the server.
Poll Interval How often should the plugin poll for metrics.

Metrics Collected

Metric Name Description
TOMCAT_JVM_FREE_MEMORY Free memory of the JVM in MBytes
TOMCAT_JVM_TOTAL_MEMORY Total memory of the JVM in Mbytes
TOMCAT_HTTP_CURRENT_THREAD_COUNT Current thread count
TOMCAT_HTTP_CURRENT_THREAD_BUSY Current thread busy
TOMCAT_HTTP_MAX_PROCESSING_TIME Maximum processing time reached for requests (ms)
TOMCAT_HTTP_REQUEST_COUNT Total numbers of requests counter
TOMCAT_HTTP_ERROR_COUNT Total numbers of errors counter
TOMCAT_HTTP_BYTES_SENT Total bytes sent in MB
TOMCAT_HTTP_BYTES_RECEIVED Total bytes received in MB
TOMCAT_MEMPOOL_HEAP_EDEN_SPACE Eden Space Heap memory pool usage
TOMCAT_MEMPOOL_HEAP_OLD/TENURED_GEN Old/Tenured Gen Heap memory pool usage
TOMCAT_MEMPOOL_HEAP_SURVIVOR_SPACE Survivor Space memory pool usage
TOMCAT_MEMPOOL_NONHEAP_PERM_GEN CMS Perm Gen Non-heap memory pool usage
TOMCAT_MEMPOOL_NONHEAP_METASPACE Metaspace Non-heap memory pool usage
TOMCAT_MEMPOOL_NONHEAP_CODE_CACHE Code Cache memory pool usage

Dashboards

Dashboard Description
Tomcat HTTP Service HTTP Metrics for the Tomcat Service
Tomcat Memory Pool Summary Memory Pools of Tomcat Service

References

http://tomcat.apache.org/

boundary-plugin-apache-tomcat's People

Contributors

bighnf avatar codemoran avatar gabrielnicolasavellaneda avatar prashantabmc avatar

Watchers

 avatar  avatar

Forkers

gokumar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.