Re: Disable Garbage Collection in Web Start

From: Dan Hinojosa (dhinojosa-squigglything-evolutionnext-dot-com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 15:14:49 -0700

guyzdancin wrote:
> There is actually a very good reason to stop the garbage collector.
> The application runs an animation of buffered images that are timed to
> run at a specific speed. If gc() runs during the animation, it slows
> down the animation or causes it to stop (like hitting a bump). When
> the application is run locally as an installed app, the garbage
> collector is disabled at the command line (-Xnoclassgc) and System.gc()
> is called at pauses in the animation. Bob, do you have a constructive
> answer?
>

GC runs on a low priority thread so if you are so concerned about that
issue you can try bumping up the priority of your animation thread
higher. I have never heard of stopping the garbage collector though.



Relevant Pages

  • Re: Disable Garbage Collection in Web Start
    ... There is actually a very good reason to stop the garbage collector. ... The application runs an animation of buffered images that are timed to ...
    (comp.lang.java.programmer)
  • Re: Disable Garbage Collection in Web Start
    ... There is actually a very good reason to stop the garbage collector. ... The application runs an animation of buffered images that are timed to ...
    (comp.lang.java.programmer)
  • Re: Disable Garbage Collection in Web Start
    ... > There is actually a very good reason to stop the garbage collector. ... If gcruns during the animation, ... it would mean that the animation also hits a bump ... not any background process. ...
    (comp.lang.java.programmer)
  • Re: Disable Garbage Collection in Web Start
    ... > The application runs an animation of buffered images that are timed to ... If gcruns during the animation, ... clearing up any no-longer-needed objects. ... This might smooth things out, ...
    (comp.lang.java.programmer)
  • Re: Disable Garbage Collection in Web Start
    ... > The application runs an animation of buffered images that are timed to ... If gcruns during the animation, ... you can create a temporary container that is the only thing that ... Vector temporaryStorage = new Vector; ...
    (comp.lang.java.programmer)