Solved

how to find JSP page total load time

Posted on 2010-11-18
6
1,668 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
ID: 34169719
you can use a filter to measure that
0
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 34169759
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34169802
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

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

Assisted Solution

by:Valeri
Valeri earned 250 total points
ID: 34170927
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
ID: 34273693
I'll be closing it by next week
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

895 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

18 Experts available now in Live!

Get 1:1 Help Now