• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Performance

 
Chuan Ren
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way one can time in milliseconds how long a JSP pages take to load? I would like to find out the performace impact on jsp:include compare to include html.
Thanks in advance for any replies.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the JSP forum.
 
amol re
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your including jsp, put the following code or its equivalent:

You should see the time in miliseconds, it takes to include jsp2.
Under normal circumstances, this time difference can vary significantly for each request.IMO, this is because, since the difference is a few miliseconds, it doesnt take much for it to double, triple, depending on the cpu conditions at that particular instant when your page is being included.
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out http://www.jamonapi.com. It can do this and much more and is easy to use.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!