• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP/servlets/java-beans..  RSS feed

 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi e'body,
well, i have started working on an already created web-application using IBM websphere 3.5.3
and I was told to make some modifications and also speedify the application.IT is working pretty slow.
I have finished the modification part, but still to make it fast.
This application is working on the MVC structure ( servlets,java-beans and JSP ). This application was developed taking the help of WebSphere studio & VisualAge for Java
It would be great if anybody can help me with the general ideas on how to make your
(JSP/servlets/java-beans) web applications run faster.
I am working with JDBC connection pooling.
One thing i have realized is that almost all the java-bean instances have been put in the session,
to extract data from the JSP(s); maybe this is a bad idea , having a lot of data in the session..??
I request you to help me out on how to make these kind of applications run faster.
I really appreciate your help.Thanks a lot
prashant
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are several good books on improving Java performance - many of the suggestions apply to servlet / JSP applications. However, you don't want to start fiddling with minor tricks until you are sure your basic architecture is efficient.
Since creating a JDBC connection is known to be slow, connection pooling is a good place to start.
I would not worry about the beans attached to the session unless you have some indication that the servlet engine is having to do a lot of serializing and reading of sessions.
Bill
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I request you to help me out on how to make these kind of applications run faster
The first rule of optimization is "find out where the time is spent". There's not really any way we can help you unless we know more about what is slowing down your application.
Do you have any sort of performance test harness or test suite which you can use to find out (a) which bits are slow, and (b) whether your changes make any difference ? If you haven't got such a thing I suggest you start by building or buying one.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!