i am getting lots of memeory leakage problem, after doing some internal test, it's becoz of lots of object creation on every request..
How to utilize the old object instead of creating new objects every time..
Thanks in Advance...
Knowing the context would help. Please post some code and point out where the problems are that you know of.
So a lot of objects are being created. So what. As I have told you before, as long as you are not hanging on to these references outside of their intended scope, this is not a problem.
How much do you currently have your max heap size set to? For truely large applications 1024m should be enough. If you have less than that, then increase it to that.
Now, as soon as the request is finished, these objects you're speaking of should be garbage collected, and so should not be a problem. If you see that requests are finishing and the objects remain, then check your code. You are not getting rid of the references. It is that simple.
create a constructor for your object in your class and reuse it through out your classess methods.
Thanks for your comments...
i try to implement those points.