Possible memory leak in WorkspaceLocatorImpl#indexCache

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: branch-api-plugin
    • None
    • Environment:

      Within 2 months we had 2 OutOfMemory-Exceptions (Jenkins-Master is running with 512MB).

      According to the Eclipse Memory Analyzer the problem might be WorkspaceLocatorImpl#indexCache:


      Each entry in the Map needs roughly ~1MB and there are currently 208 Entries.

      The machine was running for ~4 weeks now, has 2 Agents connected via Websockets and likely processed a few thousand builds on a few hundred branches. However most of these builds and branches are now merged and have therefore been deleted.

      I'm not entirely sure what the Map contains exactly, but according to https://github.com/jenkinsci/branch-api-plugin/pull/188 it's used to cache file transferation over channels.

            Assignee:
            Unassigned
            Reporter:
            Alex B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: