HomeTomcat Monitoring
Tomcat Monitoring

Tomcat – is a part of the apache software foundation and mainly used for Server side scripting for java like Java servlet, JavaServer Pages, Java Expression Language. Nodelizer helps you to monitor following metric about Tomcat installed on your server.

Metrics collected by Tomcat Integration
Metric
– Description
Total Memory
– Total memory currently allocated to the JVM heap space.
Max Memory
– Maximum size of heap space not including the permanent generation area
Free Memory
– Amount of heap space currently available to the JVM
Max Req Processing Time
– The longest request processing time
Total Req Processing Time
– Sum of processing times across all requests handled by request processors
Request Count
– Number of requests across all request processors per second
Error Count
– Number of errors on all request processors per second
Bytes Received
– Number of bytes received by all request processors per second
Bytes Sent
– Number of bytes sent by all the request processors per second
Max Threads
– Maximum number of allowed threads to process the incoming requests
Threads Count
– Total number of threads in tomcat’s threadpool at present
Current Threads Busy
– Total number of threads processing various requests at present
Configuring
  1. Edit the rptmonitor/config.cfg file :

    • Uncomment the line containing ‘tomcat_status_url:‘ & replace your IP & port.
    • For eg. if your IP was 127.0.0.1 and port 8080 then it would be:
    • Provide username(tomcat_usrnm) & password(tomcat_pswd). Remove # symbol to uncomment the lines.
  2. Restart rptmonitor:

    • For (deb/rpm)package supported Linux distros :

      sudo /etc/init.d/rptmonitor restart
    • For openSUSE(11.4+) with systemd:

      sudo systemctl restart rptmonitor.service
    • For other Linux distro, FreeBSD8+, Mac OS X+ :

      sudo python /usr/local/bin/rptmonitor/monitor.py restart