title: How to find the Total Number of Requests processed by tomcat server?
body: <p>I want to host a tomcat server, which will host 3 web applications. I want to get the total number of requests processed by my server(for any of the 3 web applications). Is there any log  from where I can check the total number of requests processed by my server(including HTTP 404 requests)</p>
  
  <p><strong>Note : I can calculate the total requests processed by each individual application and get the total number of requests processed by my server, but the applications deployed in tomcat are third-party and i cant do any changes in it.</strong></p>
  
  <p>Basically, I am building a monitoring application for the tomcat server and I have to provide the total requests served in the application, </p>
  
  <p>Also, My first thought was to over-ride the HTTPServletRequest class constructor in servlet-api.jar and put a static counter. since every request is mapped to HTTPServletRequest object, I guess it will do the job. But is it a good idea to over-ride the HTTPServletRequest or is there any existing solution available for this?</p>