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

PerJobCredentialStore kept in ExportTable (potential OOM)

      PerJobCredentialStore is kept in ExportTable and is never released which can leads to OOM, for details see [1] and also [2].
      [1]http://jenkins.361315.n4.nabble.com/jenkins-running-out-of-memory-heapspace-I-have-a-memory-leak-td3658830.html
      [2]http://jenkins.361315.n4.nabble.com/Severe-memory-leak-in-hudson-td3162254.html

          [JENKINS-10424] PerJobCredentialStore kept in ExportTable (potential OOM)

          vjuranek created issue -

          vjuranek added a comment -

          IMHO it's cause by PerJobCredentialStore.writeReplace() which increases reference count, but later on it's not decreased and there it's kept in ExportTable all the time (but still not compltely about it).

          vjuranek added a comment - IMHO it's cause by PerJobCredentialStore.writeReplace() which increases reference count, but later on it's not decreased and there it's kept in ExportTable all the time (but still not compltely about it).
          kutzi made changes -
          Component/s New: subversion [ 15485 ]
          Kohsuke Kawaguchi made changes -
          Assignee New: Kohsuke Kawaguchi [ kohsuke ]
          Kohsuke Kawaguchi made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Fix is locally confirmed in tests and currently field tested. If anyone is interested in helping to verify the fix, please let me know.
          Currently the fix is targeted in 1.424.

          Kohsuke Kawaguchi added a comment - Fix is locally confirmed in tests and currently field tested. If anyone is interested in helping to verify the fix, please let me know. Currently the fix is targeted in 1.424.

          vjuranek added a comment -

          I'm happy to try to verify the fix. Is the patch available somewhere?

          vjuranek added a comment - I'm happy to try to verify the fix. Is the patch available somewhere?

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          pom.xml
          http://jenkins-ci.org/commit/jenkins/c797e28b7b2df90cec240c159200077880903271
          Log:
          [FIXED JENKINS-10424] integrating a new version of remoting.jar that
          fixes reference count leaks.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html pom.xml http://jenkins-ci.org/commit/jenkins/c797e28b7b2df90cec240c159200077880903271 Log: [FIXED JENKINS-10424] integrating a new version of remoting.jar that fixes reference count leaks.
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          The fix is in remoting.jar 2.2. So interested people please build Jenkins with this remoting jar and let us know how it goes.

          I can build 1.422+this fix very easily, but I don't have a good place to put it, as jenkins.war is bulky.

          Kohsuke Kawaguchi added a comment - The fix is in remoting.jar 2.2. So interested people please build Jenkins with this remoting jar and let us know how it goes. I can build 1.422+this fix very easily, but I don't have a good place to put it, as jenkins.war is bulky.

            kohsuke Kohsuke Kawaguchi
            vjuranek vjuranek
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: