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
1 Comments:
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
Post a Comment
Subscribe to Post Comments [Atom]
<< Home