This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
hi, I am interested in measuring the response time for a jsp i.e; the time between the instant the request is received by the JSP, to the instant the result in html in produced(on server side). Note that this does not include the network transmission time. I tried using simple system.currenttimemillis() at the start and end of the jsp; but this does not given me the right values. Any help in this in highly appreciated. Thanks
Thats the only call to get system time. Why do you think it is not working? Bill
Joined: Jul 03, 2002
Hi, I am actually interested in finding the variation in the jsp response time as the load on the jsp increases. But, I am not noticing any difference in jsp response time with increase in load, using my current method. I think this is because I am not taking into account the wait time between when the http request was recevied to when the actual processing of the jsp began. I do notice that the jsp output is much slower with increase in load, but the response time using my current method remains the same. So if there was a way to find the time when the actual HTTP request was received, rather than just when the jsp processing started(as done by using the system.currenttimeinmillis at the beginning of the jsp), I think I would find a solution to this. Thanks for your help
Which JSP container are you using? If you have the source code you could probably put time logging in the network protocol handling code. In practice, though, the obvious way is to use one of the many tools which measure remotely and include the network latency in the total. That's what matters to users, after all.