| Author |
Logging the time it takes for a page to load
|
Eugene Abarquez
Ranch Hand
Joined: May 18, 2006
Posts: 211
|
|
Hi, I have a web application written in Struts and I want to log the time that it takes for each page in my app to load. Is there an easy way to do this? Are there tools or libraries available for this? If none, what solutions can you recommend that I can use to achieve this? Thanks for your inputs, Eugene
|
There's so much to learn in this industry, and not everybody has the necessary interest.
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8263
|
|
Are you talking about the time it takes the server to respond to a request (server-side profiling) or the time it takes for a browser to receive the download (client-side profiling) These are two different metrics. For server-side profiling, I've heard good things about JAMon. For client-side profiling, I've used The Grinder many times.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Brent Sterling
Ranch Hand
Joined: Feb 08, 2006
Posts: 948
|
|
You can do your own logging at the action level and this is pretty easy to throw in if you are using a common base action class. This tells you most of what you want to know as far as server-side processing goes. This timing would not include JSP processing (including processing done with custom tags) and does not include the minor overhead that Struts adds in. Your application server might be able to provide higher level timing that includes all server-side processing. True end user experience is a little tougher to measure and to some extent you need to figure out what is important to measure. Measuring performance under various loads can also get involved. Also, if you are just kicking statistics out to a log file, you need to do some processing of the log file to produce meaningful statistics. There are various commercial tools designed to do this type of stuff. Joe: Thanks for the JAMon link...I might check into that. - Brent
|
 |
Eugene Abarquez
Ranch Hand
Joined: May 18, 2006
Posts: 211
|
|
Hi Joe, Thanks for the links! I was looking for client-side profiling. I will try this out. Anyway, thanks for all your inputs. Eugene
|
 |
 |
|
|
subject: Logging the time it takes for a page to load
|
|
|