Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page

Reply

Join Date: Aug 2005
Posts: 1
Reputation: vamsee is an unknown quantity at this point 
Solved Threads: 0
vamsee vamsee is offline Offline
Newbie Poster

Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page

 
0
  #1
Aug 10th, 2005
hello friends, I'm doing a project with JSP, MySQL and Tomcat.

I need a code to calculate the execution of a JSP page.

Its V.V.V.Urgenttt... plzzz help mee out
Last edited by vamsee; Aug 10th, 2005 at 3:26 pm. Reason: The Question is not clear
Reply With Quote Quick reply to this message  
Join Date: Nov 2003
Posts: 781
Reputation: Zachery has a spectacular aura about Zachery has a spectacular aura about 
Solved Threads: 21
Team Colleague
Zachery's Avatar
Zachery Zachery is offline Offline
The Geek Father

Re: Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page

 
0
  #2
Aug 10th, 2005
Generally the first rule here is, we aren't going to do your work for you, we will however help you if you are making an effort.
Firefox: no, its not the end all solution, it has its own issues and in time it will be just as insecure as IE, when its hit Firefox 6, if it makes it that far. Oh, and AOL pays for it, incase you didn't know.

Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,144
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page

 
0
  #3
Aug 11th, 2005
And second: asking for preferential treatment by claiming you need something urgently (or "by noon and it's already 10AM") will be counterproductive.

Now for your question (12 hours sounds like a decent penalty ):
The simplest way would be to insert some logging statements at the beginning and end of your JSP.
JSPs are executed in linear fashion by the application server (effectively your JSP becomes the body of the service method of a servlet) so that would give you a timestamp for start and end of execution.

What it won't do is give you the complete execution time of the request, as that includes time taken by the application server, network latency and transmission times, rendering time by the browser, etc..
Those you can't really find out about and you can't control them, except the browser rendering which depends in large part on the complexity and size of the generated HTML code (as an example, we were able to bring the rendering time on one particularly complex page here back from 10 seconds to under 3 by making some minor changes to the html).
Tomcat of course should also be able to be configured to log every request and response with a timestamp, up to you to figure out.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 18
Reputation: 3xxx is an unknown quantity at this point 
Solved Threads: 0
3xxx 3xxx is offline Offline
Newbie Poster

Re: Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page

 
0
  #4
Sep 4th, 2007
ya, usually, it takes FEW MONTHS to have a few reply from daniweb.com

Unless you offer Materialistic goods shipped from amzon.com, you won't get a quick answer
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,423
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 507
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page

 
0
  #5
Sep 4th, 2007
Originally Posted by 3xxx View Post
ya, usually, it takes FEW MONTHS to have a few reply from daniweb.com

Unless you offer Materialistic goods shipped from amzon.com, you won't get a quick answer
So you drug up a two-year-old thread to post this inane and utterly inaccurate comment? Brilliant.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC