943,740 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 8488
  • JSP RSS
Aug 10th, 2005
0

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

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vamsee is offline Offline
1 posts
since Aug 2005
Aug 10th, 2005
0

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

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.
Team Colleague
Reputation Points: 96
Solved Threads: 21
The Geek Father
Zachery is offline Offline
781 posts
since Nov 2003
Aug 11th, 2005
0

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

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Sep 4th, 2007
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
3xxx is offline Offline
19 posts
since Jul 2007
Sep 4th, 2007
0

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

Click to Expand / Collapse  Quote originally posted by 3xxx ...
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.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: server
Next Thread in JSP Forum Timeline: setters and getters





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC