Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to Tomcat server.

I'm designing a tool that provides the statistics of hits(page views) in a tomcat server.
i.e . I want to design a monitoring tool that gives the data of hits from a customized particular time to present time(Drop down).

I'm using Jquery bar chart plugin to design the graphs based on hits w.r.t time.

How can I do this?

I'm doing it for a Ubuntu server (10.04). Java version -6 and Tomcat version 6.

share|improve this question
You are looking for activating JMX mBeans (the Java counterpart to PerfMon) in your Tomcat. It takes a bit of googling to figure out activation and what mBean counter you need to pull statistics from. Try running VisualVM (bundled with Java JDK) locally for an easy start, then go remote JMX. Pathing is a bitch but you'll figure it out. – ErikE Feb 7 '14 at 6:01

Tomcat can be configured to expose a jmx interface. Although I am not sure you would find Apache like access log files (note you can do it with an AccessLog valve in tomcat configuration), you would find a lot of useful information's like connector stats, JVM stats, etc

Take a look at this page for instance:

share|improve this answer

What you should probably do is configure Tomcat to write an access log, then read that log in with your reporting system.

There's plenty of software out there already that can handle reporting from web server logs well, so it may not be necessary to implement something from scratch for this.

share|improve this answer
Can you name some of those softwares – user3004356 Feb 7 '14 at 5:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.