File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Web application performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Web application performance" Watch "Web application performance" New topic

Web application performance

Shankar Narayana
Ranch Hand

Joined: Jan 08, 2003
Posts: 134
Hi all,

My application contains, Servlet, beans and jsp's , now for each request a requestType and beanType are passed as parameters and depending upon those parameters the servlet creates a new instance of the bean every time and i am making the bean object created to refer to NULL in the finally block. Does this sounds like a good approach?, any performance issues? what are the other procedures for a basic web application, I am not using any framework although its very much similar to Model 2 architecture.


"Failure is not when you fall down; its only when you fail to get up again."
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 862
Assigning a null to a variable instance in a finally block should never be a performance issue. However, I am not sure why you are doing this as you say the object is recreated with each request and so a garbage collection candidate when it goes out of scope. - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
I agree. Here's the link:
subject: Web application performance
It's not a secret anymore!