aspose file tools*
The moose likes Java in General and the fly likes Memory Leakage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Memory Leakage" Watch "Memory Leakage" New topic
Author

Memory Leakage

Vallabhaneni Suresh Kumar
Ranch Hand

Joined: Mar 01, 2004
Posts: 68
Is memory leakage possible in Java? If yes, can you describe a case in which memory leaks may occur, and what is the way to avoid that?

Thank you
Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
Can Java applications leak memory?
http://jqa.tmorris.net/faq/GetQAndA.action?qids=38&showAnswers=true


Tony Morris
Java Q&A (FAQ, Trivia)
Mahesh Pinnamaneni
Ranch Hand

Joined: Jul 02, 2004
Posts: 100
as i have heard that Memory Leakage occures majorly applies to external resources like sockets or database connections etc..
But i didn't understand whether there is a chance of memory leakage due to un referenced objects in the memory which are not garbage collected?
if YES, then how to handle these kind of problems.
can any one give me an example to show how mem leake happens in case of objects.
thanks alot,
--Mahesh
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
An example would be adding a listener and not removing it when its not needed or used or has been replaced by a new one
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Memory Leakage