Tuesday, July 21, 2009

How to Fix Memory Leaks in Java

1 Comments:

Blogger Prashant Pandey said...

Memory leaks can be avoided by two approaches:

1.Manage your objects life cycle effectively(Assign reference to null when you are sure objects no more needed, create pool of heavy weight similar objects).
2. By increasing JVM heap size(e.g. java -Mx512).

In a production environment combined approach can give desired results

September 7, 2009 at 2:24 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home