Notes.ini Entry



Name:

    JavaNoClassGC

Syntax

    JavaNoClassGC=0 / 1

Applies to:

    Servers

Add-on:


    First Release:

      6.0

    Obsolete since:


      Category:

        Java

      Default:

        0

      UI equivalent:

        None

      Description:
      Use this variable to turn off the garbage collection (GC) of unreferenced classes.

      Prevents the garbage collection (GC) mechanism of classes, which protects static fields. Specify 1 as the value to enable the JavaNoClassGC setting.

      Valid Values are:

      0 : Prevents the garbage collection (GC) mechanism of unreferenced classes.

      1 : Enable the garbage collection (GC) mechanism of unreferenced classes.

      For example, you might turn garbage collection of classes off to protect static fields. If a class has static fields that are used by others, and garbage collection is performed on that class, it could lead to potential unintended changes in the static fields.

      You can use this variable to stop failures due to poorly written code, for instance, code that relies on static fields with no continuity of class referencing. Properly designed code will work properly regardless of the state of this variable.