| | |
Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
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
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.
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.
![]() |
Similar Threads
- how to find execution time milliseconds (C)
- to find the execution time of a code (C)
- Maximum execution time exceeded. (PHP)
- Execution time(plz Help) (Shell Scripting)
Other Threads in the JSP Forum
- Previous Thread: server
- Next Thread: setters and getters
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web






