2 Replies Latest reply on Dec 12, 2003 1:38 PM by juha

    Switching off System.GC() call in 3.2.2

    gwwallace

      Is there a way to tell JBoss not to call System.gc() every couple of minutes ?

        • 1. Re: Switching off System.GC() call in 3.2.2
          gwwallace

          some further info:

          i unpacked the 3.2.2 tar gz added -verbosegc to JAVA_OPTS in run.sh and ran it clean.

          System.gc() is called every minute.

          I downloaded the 3.2.2 source tarball, cant find any code that calls System.gc, Runtime.getRuntime().gc()

          Whats going on ? When I use a large heap ie >2Gb, the Full GC is taking up to 20 secs every minute

          • 2. Re: Switching off System.GC() call in 3.2.2

            Yes, this is an option on your JVM. For Sun VM its -XX:DisableExplicitGC

            The RMI subsystem amongst other things is attempting to do full GC in very short intervals.