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

My employer asked me this and I'm trying to figure out ways to measure this.

We have have several applications - some Java with Tomcat and some .NET under IIS.

To make things a little easier on myself I'm only going go deal with the Java side for now. Some apps use velocity and some use JSP/JSF.

I guess for Velocity I can put some code into our velocity view servlet to log start/end times. But I'm not sure where to look for JSP. Thoughts?

Does anyone know of any tools that can measure types of jobs the app server does?


share|improve this question
The tool you are looking for is generically called a profiler I don't kknow much about java/jsp stuff though. There are some hits on Google for Java profilers. Perhaps you are able to evaluate and see if they do what you want? – Zoredache Aug 14 '12 at 20:41
up vote 2 down vote accepted

I'd suggest looking at the YourKit Java profiler. See

I have used this with clients at work to diagnose some performance issues with their JSP pages and it worked like a charm. YourKit does provide some J2EE specific measures but I tend to use the raw CPU profiling results as I am usually interested in what Tomcat is doing rather than what the JSP is doing.

In the interests of full-disclosure I should point out that as an ASF committer, I get a free YourKit license that i use to work on Tomcat.

Note that you'll often see much slower responses on the first access of the JSP while it is translated to source code for a Servlet and compiled. Subsequent accesses are usually faster.

share|improve this answer
Right. What I'd like to know is how long that part takes, and subsequent JSP processes. – sproketboy Aug 14 '12 at 22:25

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.