Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70064

Possible memory leak in WorkspaceLocatorImpl#indexCache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • branch-api-plugin
    • None

      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.

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

              Created:
              Updated: