There is IMHO many reason for it !
The most likely one is that you do not de-allocate the Objects as it should.
Basically
you should nullify all the references you have when you don't need them !
All your class can then implement the
interface like this :
You basically don't need to call on
System.gc();, it will be OKAY w/o that !
By doing that you basically reduce the length of chains of unreferenced objects making the job of the GC easier !
There is on IBM alpha work a very good article about that !
You may also reduce the amount of memeory a program is allowed to use with the
java -X options ...
Yrs,
[ April 20, 2002: Message edited by: Thomas SMETS ]