Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Performance Improvement Tips

 
Sateesh Kumar K
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can any body list out the performance improvement guidelines one needs to follow while developing Web Applications using JSP. Assuming that in these Web Apps we are not using any MVC Architecture..
What are the tools available that can suggest some improvement guidelines or scan through the JSP page and gives a report with which portion of it is taking how much amount of time..

Thanks in Advance
Sateesh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Off the top of my head:
1. Premature optimization is the enemy of working code. - (translation - get it working first, then optimize)
2. Avoid excessive object creation (the usual argument for using StringBuffer when assembling strings.)
3. Cache chunks of output that are hard to create in the first place but don't change very often. (For example, a list of news items drawn from moreover.com only needs to be recreated every hour or so.)
4. Use a connection pool instead of creating a DB connection for every transaction.
Bill
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!