• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to test JSP performance  RSS feed

 
hildich kilal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are having a web application and it is taking around 5- seconds to load pages some times. Now we have already calculated the performance (or say profiled already) the back end application.

I would like to know is there any way i can use some profiling tool to calculate the rendering time and performance to render the page ?
Is there any easier way to calculate how much time a JSP page is taking to render? (I have thought of using javascript at start and end of page to calculate system millisec but looking for some more professional way)

Please help.
Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A servlet filter could measure the server-side processing time.

But overall rendering time also includes network latency and browser rendering time, so if the server-side processing time is OK, that's where you might want to look next.
 
hildich kilal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

We have already done profiling for server side component.
And yes your point is very much correct about n/w latency and Rendering. Regrading the former we are aware of it . What we are trying to find is time taken for rendering of jsp pages.

I have found one tool called "JRat" and it is really offerring me what I am looking for. It very nicely lists the classes and various methods (this includes JSP's and their _jspInit(), _jspService() methods also) and their sttistics like avg time, total time, entrys and exits from various methods. So at the moment I will be using that.

But one thing which caught my eye is Servlet Filters you said.Can you point me to some link i can read about it? what is it and how it works?

Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet filters would allow you to hook the servlet request processing, and take note of start and finish times of that. Googling for "servlet filter tutorial" or some such should find many introductions.

But it sounds as if the tool you're using already does way more than pure servlet filters could give you, so that's probably not worth pursuing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!