The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.



Posted by Ramesh R G V S on October 24, 2000 at 9:23 PM

> My application creates numerous threds, after their usage I just
> call stop() on them, but they don't seem to be getting garbage
> collected, i.e. resulting in memory leaks. Any ideas to avoid
> these memory leaks on these Zombie threads.

calling stop() method on a thread will simply stops its java u can not force garbage collector to free the memory u assigned to diiferent objects.Garbagecollectior is a low priority thread which will run when no other higher priory threads are running ant will free the memory.
so we can not be sure of freeing of memory.just assign null after usning to the object u created so that when GC runs it cleans this object

Ramehs R G V S


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us