User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 423,552 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,919 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 5883 | Replies: 4
Reply
Join Date: Aug 2005
Posts: 1
Reputation: vamsee is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vamsee vamsee is offline Offline
Newbie Poster

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

  #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 2:26 pm. Reason: The Question is not clear
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2003
Location: Ohio
Posts: 778
Reputation: Zachery has a spectacular aura about Zachery has a spectacular aura about 
Rep Power: 7
Solved Threads: 20
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

  #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  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 197
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

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

  #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  
Join Date: Jul 2007
Posts: 12
Reputation: 3xxx is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
3xxx 3xxx is offline Offline
Newbie Poster

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

  #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  
Join Date: May 2007
Location: USA
Posts: 2,826
Reputation: Ezzaral is a name known to all Ezzaral is a name known to all Ezzaral is a name known to all Ezzaral is a name known to all Ezzaral is a name known to all Ezzaral is a name known to all 
Rep Power: 12
Solved Threads: 282
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is online now Online
Posting Maven

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 6:10 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC