Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6136

Possibly memory leak in Eval with PathExpression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.7, 2.1.3
    • None
    • groovy-jdk
    • None
    • JDK 1.6, JDK 1.7 with JVM Option: -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+TraceClassUnloading -XX:+TraceClassLoading

    Description

      Possibly PermGen memory leak in eval.

      It loads Script class every execution of eval but never unloads and triggers "java.lang.OutOfMemoryError: PermGen space" error.

      I performed GC manually by JVisualVM among the time but no effect on PermGen space (works well on Heap).

      Here are the ClassLoading/Unloading trace log:

      ...
      [Loaded sun.reflect.GeneratedMethodAccessor24 from __JVM_DefineClass__]
      [Loaded sun.reflect.GeneratedMethodAccessor25 from __JVM_DefineClass__]
      [Loaded Script1 from file:/groovy/shell]
      [Loaded Script1 from file:/groovy/shell]
      [Loaded Script1 from file:/groovy/shell]
      [Loaded Script1 from file:/groovy/shell]
      [Loaded sun.reflect.GeneratedMethodAccessor26 from __JVM_DefineClass__]
      [Loaded Script1 from file:/groovy/shell]
      [Loaded Script1 from file:/groovy/shell]
      [Loaded Script1 from file:/groovy/shell]
      [Loaded Script1 from file:/groovy/shell]

      Attachments

        1. EvalTest.zip
          1 kB
          Donghun Lee

        Issue Links

          Activity

            People

              Unassigned Unassigned
              leewin12 Donghun Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: