phoneme
  1. phoneme
  2. PHONEME-54

Classes not getting garbage collected automatically

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Product: phoneME Advanced (phoneme_advanced_mr2-b168)
      Profile: Foundation Profile Specification 1.1
      JVM: CVM phoneme_advanced_mr2-b168 (interpreter loop)

      Description

      When running Apache Derby unit tests on phoneME, we frequently see
      OutOfMemoryErrors (or sometimes java.lang.InternalError: Number of
      class names exceeds vm limit). These errors appear to happen because
      phoneME runs out of space for classes. However, if we add explicit
      calls to System.gc(), the problems go away. So the problem seems to be
      that phoneME doesn't automatically run garbage collection when it's
      about to run out of space for classes.

      phoneME should be able to detect that it's about to run out of class
      space and invoke garbage collection, so that the applications don't
      need to run garbage collection manually.

      (This seems to be more of a problem when running with heap settings
      higher than the default, as that would reduce the chance of the heap
      getting full and implicitly triggering timely garbage collection.)

      1. ClassGC.java
        1.0 kB
        Knut Anders Hatlen

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: