I believe Java decides when to actually free the memory based on when it
needs to, not when there's objects that can be freed.  I used to have some
good documentation on when Java's garbage collection runs.  Does anyone have
any good pointers to explanations on how Java's garbage collection runs?

-Scott

On 10/1/07, Dominika Tkaczyk <[EMAIL PROTECTED]> wrote:
>
> Scott Battaglia napisaƂ(a):
>
> > Are you actually seeing out of memory exceptions or are you just worried
> > that free memory goes low?  If the memory goes low and then is garbage
> > collected that is fine.
> >
> > Otherwise, I would see what those Hashmap entries are holding on to.  My
> > guess would be tickets.  You could always shorten the ticket expiration
> time
> > and run the cleaner more frequently.
>
> Hi Scott,
> sorry for the delay of my answer.
>
> So far, there were no memory exceptions. I am worried, because I thought
> that garbage collector should clean the memory periodically, and not when
> the free memory is very low. Maybe there is a way to tell it to do so?
>
> Anyway, I admit: maybe I am just being too careful with this.
>
> Regards,
> Dominika
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to