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

Groovy sandbox class loading cache cleared out by garbage collection

    Details

    • Similar Issues:
    • Released As:
      script-security 1.66

      Description

      A fix for memory leaks in script-security released in version 1.60 (PR 253) inadvertently caused the inner caches in SandboxResolvingClassLoader.parentClassCache (which contain the actual cached classes) to always be weakly referenced, allowing them to always be cleared out by the garbage collector, since the inner caches are never strongly referenced anywhere else. In cases where the garbage collector is running frequently, this significantly reduces the effectiveness of the cache, and can contribute to performance problems in code that uses SandboxResolvingClassLoader, such as Pipeline.

        Attachments

          Activity

          Hide
          dnusbaum Devin Nusbaum added a comment -

          A fix for this issue was released in script-security 1.66.

          Show
          dnusbaum Devin Nusbaum added a comment - A fix for this issue was released in script-security 1.66.

            People

            • Assignee:
              dnusbaum Devin Nusbaum
              Reporter:
              dnusbaum Devin Nusbaum
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: