Solved

how to find JSP page total load time

Posted on 2010-11-18
6
1,620 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:javaCaravan0
6 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
you can use a filter to measure that
0
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
Comment Utility
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
If it's a publicly visible web site, you can use http://www.uptrends.com/aspx/free-html-site-page-load-check-tool.aspx .
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:javaCaravan0
Comment Utility
no it's not a publicly visible site.
0
 
LVL 16

Assisted Solution

by:Valeri
Valeri earned 250 total points
Comment Utility
try :
long start = System.currentTimeMillis();
...
soem code
...
long end = System.currentTimeMillis();
long timeTaken = end - start;
I think it will be enoughfor your needs.
0
 

Author Comment

by:javaCaravan0
Comment Utility
I'll be closing it by next week
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now