Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4866

DefaultLegacySupport leaks MavenSession instances in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • None
    • None

    Description

      When DefaultLegacySupport is used in conjunction with thread pools (ThreadPoolExecutor for example), MavenSession instance is essentially leaked via InheritableThreadLocal used by DefaultLegacySupport and will not be released to garbage collection until pooled thread is stopped and it's thread locals are cleaned up. This can result in excessive memory usage because repo system cache can be quite big. See also MNG-4860

      Attachments

        Issue Links

          Activity

            People

              igorfie igorfie
              igorf Igor Fedorenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: