• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Performance of JSP

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any body give me some idea about the important thing that should be considered to maximize the performance of jsp applications
ie WHAT I CAN DO ?
and WHAT I SHOULD NOT DO IN A JSP APLICATION?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably the first pointer that most people would give you is to be careful not to combine Business and Presentation logic. Bacically this means that you don't do everything in the same JSP since if the front end needs changing you have to re-write the Business logic as well and vice versa.
As to how you efficiently separate these layers... Thats a bit of an argument...
Dave.
 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Respected David O'Meara,
Thank you very much for your reply
I have seperated the presentation from logic
Could you give some thing which i should be carefull about CODING

 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Improving the performance of a JSP application should use the same approach as improving the performance of any application.
1. Start by measuring the performance, in detail, to find out which parts of the process take longest. Addresss them first, when you have speeded up the slowest so that it is no longer the slowest, move on to the next slowest and improve that.
2. Keep an open mind. If the slowest part is the database (say), then optimize that, or if your webserver/JSP container is slow, consider reconfiguring/replacing that.
3. If the slowness is actually in the Java, apply the usual java speedups: make sure your code is doing only what it really needs to, re-use objects wherever possible rather than calling 'new' (especially very slow things like database connections or query results) and so on.
Above all, find out what is slow before you start "optimizing", It will probably surprise you! If the problem is in the Java, consider asking some more detailed questions in the "performance" forum we have set up for just that purpose or consider buying Java Performance Tuning by Jack Shirazi.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic