If there isn't, it'd be pretty easy to write. Not sure I'd do it as a JMX bean versus a simple servlet filter that logs a counter for each request, or even simpler, just enable the AccessLogValve and use 'wc -l [logfile]', but the specific approach depends on your use-case requirements.
Yoav On 4/27/06, Zihui Ren <[EMAIL PROTECTED]> wrote: > Hi, all > > > I need to get request count for a webapp and for the whole Tomcat server. > But I look around Tomcat MBeans in JConsole and only found that I could get > request count and error count for individual Servlet via attribute of > corresponding StandardWrapper Mbean " > > Catalina:j2eeType=Servlet,name=x,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none". > To aggregate request count of all Servlet seems too ineffective. Is there > any MBean through which we can get request count to a webapp or server? > > > > Thanks in advance! > > Zihui > > -- Yoav Shapira Nimalex LLC 1 Mifflin Place, Suite 310 Cambridge, MA, USA [EMAIL PROTECTED] / www.yoavshapira.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]