I am looking for a simple program that can demonstrate memory leak in Java.
Thanks.
I am looking for a simple program that can demonstrate memory leak in Java.
Thanks.
A great example from a great book: http://www.informit.com/articles/article.aspx?p=1216151&seqNum=6
Memory leak are for example if you have references that are not necessary any more but can't get catched by the garbage collector.
There are simple examples e.g. from IBM that shows the principle:
http://www.ibm.com/developerworks/rational/library/05/0816_GuptaPalanki/