Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3368

CachingPatternSpecFactory uses a lot of memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10-rc-1
    • Known Issue Of:
      2.9

      Description

      https://discuss.gradle.org/t/cachingpatternspecfactory-does-occupy-to-much-heap-space/12932

      The memory usage problem is caused by duplicate String instances in all of the RelativePath instances. The fix is to use the StringInterner based on Guava's WeakInterner to de-duplicate the String instances (path segments) that are referenced by the RelativePath instances.
      This problem affects zipTree and tarTree. It also affects all file tree operations on JDK 6.

        Attachments

          Activity

            People

            Assignee:
            lhotari Lari Hotari
            Reporter:
            big-guy Sterling Greene
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: