Forum Discussion

Mayank_125228's avatar
Mayank_125228
Icon for Nimbostratus rankNimbostratus
Mar 13, 2013

How to monitor TOMCAT AJP port

 

The setp up we have: HTTPS Request > Web server (APACHE)> Firewall>F5 Load Balancer> Application server (TOMCAT> UROUTER Middleware service) > Database (Oracle). I would like to configure Monitors for Application Pool (TOMCAT). This document (http://www.f5.com/pdf/deployment-guides/tomcat-dg.pdf) suggest to use this string (GET /bookstore/healtcheck.jsp HTTP/1.0\r\n\r\n). However, we do not have an option to use JSP file on Application (TOMCAT) server. Are there any otherways to Monitor TOMCAT (AJP)? Thank you.

5 Replies

  • The details in the guide are simply examples, simply change the request URI (from /bookstore/healtcheck.jsp) to something valid in your environment.
  • Thanks for your suggestion. This is an Application server and listening on TOMCAT AJP port so none of the GET command works for valid URL. i.e http://FQDN:TMOCATAJPPORT/test/test.com

     

  • I'm not sure how or why the deployment guide would suggest an HTTP test for AJP. They must be assuming an HTTP server front-end, I suppose?

     

    I think you should create a new TCP test using the ping command from the AJP specification. You would transmit and expect the following hexadecimal-formatted data:

     

    Transmit (AJP ping): \x12\x34\x00\x01\x0A

     

    Expected response (AJP pong): \x41\x42\x00\x01\x09

     

    I hope this proves helpful.