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

Groovy ant task memory leak (re-opened GROOVY-891)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 1.0-JSR-2
    • None
    • Ant integration
    • None

    Description

      There appears to be a memory leak in the groovy ant task. This becomes apparent when calling from one ant file to a number of others, each with a groovy task.

      I performed the following tests:

      • Increase the complexity and memory used of the groovy script in ant. This had no effect.
      • Increase the number of groovy tasks in a single ant script. This had no effect
      • Increase the total number of ant scripts called. This showed memory growth.

      The following message is typical:

      BUILD FAILED
      D:\projects\config\build\temp\build.xml:13: Following error occured while executing this line
      D:\projects\config\build\temp\dependencies.xml:87: Following error occured while executing this line
      java.lang.OutOfMemoryError

      I have attached a demonstration ant build system similar to our project build where the problem first occurred. For best results set the JVM memory via the ANT_OPTS environment variable to something like 16 Meg ie:

      set ANT_OPTS=-Xmx16M

      and then run ant.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              cfederighi Craig Federighi
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: