• Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.6.1, 1.6.2, 1.6.3, 1.6.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Windows 32-Bit


      When building larger projects using Groovy ant task there occurs a memory leak. When using Groovy 1.5.7 the leak is not there using all above that version including 1.6.4 the memory leak appears. It seems that classes do not get unloaded so the perm gen space accumulates. When many groovy and groovyc tasks are called in a ant build this becomes visible.

      I am using ANT 1.7.1 libraries, but this problem does still occur when using ANT 1.7.0.

      I was running JVM with -verbose:gc and found the following difference:

      [Unloading class com.nsn.see.sce.entity.ArtifactExecutor]

      is there in 1.5.7 but not in 1.6.4. So It does not clean up the classes that is inside the <groovy> task directly. It seems that the classes that are using by the ArtifactExecutor do get cleaned up.

      May be the fact that I have nested the taskdef influences this problem?

      <taskdef name="groovytools" classname="org.codehaus.groovy.ant.Groovy">
      <path refid="groovytools.classpath"/>

      import com.nsn.see.sce.entity.ArtifactExecutor
      new ArtifactExecutor(ant).buildArtifacts()

      I attached the two extracts of the garbage collector.

      1. groovy1.5.7.txt
        54 kB
        Richard Bock
      2. groovy1.6.4.txt
        73 kB
        Richard Bock

        Issue Links


          Richard Bock created issue -
          Paul King made changes -
          Field Original Value New Value
          Link This issue is related to GROOVY-3488 [ GROOVY-3488 ]
          Paul King made changes -
          Assignee Paul King [ paulk ]
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Mark Thomas made changes -
          Workflow jira [ 12732641 ] Default workflow, editable Closed status [ 12744488 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12970710 ] Default workflow, editable Closed status [ 12978477 ]


            • Assignee:
              Paul King
              Richard Bock
            • Votes:
              2 Vote for this issue
              1 Start watching this issue


              • Created: