• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1970
  • Last Modified:

how to find JSP page total load time

I'm working on improving the response time for our JSPs pages by compressing the html contents sent back to the client in the response object and by trimming spaces generated due to the JSTL tags. I would like to collect data for as is and the imroved transactions and I want to collect data by executing the transactions at different sites  where our end-users use them. To achieve this I would like to add a code to the JSPs that will record the time when a request for the page is sent and the other time when the response is sent to the client and the page has been competed loaded. I would like to know what do I need to do to achieve the total load time for the JSPs. My application is using MVC (Model-View-Controller) architect using JSP, JAVA and Spring  with JBOSS AS.
2 Solutions
you can use a filter to measure that
Dave BaldwinFixer of ProblemsCommented:
If it's a publicly visible web site, you can use http://www.uptrends.com/aspx/free-html-site-page-load-check-tool.aspx .
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

javaCaravan0Author Commented:
no it's not a publicly visible site.
try :
long start = System.currentTimeMillis();
soem code
long end = System.currentTimeMillis();
long timeTaken = end - start;
I think it will be enoughfor your needs.
javaCaravan0Author Commented:
I'll be closing it by next week
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now