Re: Garbage collection and objects
Re: Garbage collection and objects
- Subject: Re: Garbage collection and objects
- From: Victor Yee <email@hidden>
- Date: Tue, 13 Feb 2001 07:52:06 -0500
Thank you, Scott, for the information.
>
If you watch memory use, you'll think you have a leak, as memory in use grows
>
and grows. Then the garbage collector kicks in, and the objects in use bop over
>
to new memory, and the old hunk clears out.
This was the behaviour that I was experiencing on a stay-open applet. As items were intermittently processed, free memory continued to decrease.
I expected garbage collection to occur at some point, but free memory kept decreasing until almost zero where either an out-of-memory occurred or the applet simply stopped responding.
Since I was using script objects to carry data, I thought that perhaps that created a problem, although that didn't seem likely. Still, since I lack experience, I thought I'd ask.
Sigh... I guess I'll have to go through and check the script code, there must be a leak in there somewhere. At least I know that the problem results from the item-processing section.
Thanks again.
--
Victor