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

Massive increase in memory usage due to CacheableCallSite

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.9
    • 3.0.10, 4.0.0
    • groovy-runtime
    • None

    Description

      When upgrading our tests from Spock 1.3 with Groovy 2.5 to Spock 2.0 with Groovy 3.0.9, we are seeing issue with memory usage caused by CacheableCallSite. This memory seems to be retained in classes and is therefore never freed. A single Spock test class can take as much as 150mb memory. The total amount of memory sums up to several gigabytes of additional memory, causing our tests to take about 3 times as much memory as with Spock 1.3 and Groovy 2.5.

      Attachments

        1. Screenshot_20210913_161502.png
          209 kB
          Emond Papegaaij

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              papegaaij Emond Papegaaij
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h