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

Excessive memory usage with large number of request threads

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core

      Jelly TagScripts maintain a per-thread cache of Tag objects. These Tag objects in turn hold on to their JellyContexts. This tag cache doesn't get GC-ed until the thread is dead, so if there are a large number of HTTP request handling threads, over time the tag cache gets pretty full, results in OutOfMemoryError.

      This problem is fixed in Jelly and integrated into stapler 1.197, which gets released in 1.485 through 288827f67166c3159f18babf87b16693f537bb9b.

      I'm recording this here to make this backported to LTS.

          [JENKINS-15493] Excessive memory usage with large number of request threads

          Kohsuke Kawaguchi created issue -
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Labels New: 1.480.1-fixed
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146249 ] New: JNJira + In-Review [ 191842 ]

            kohsuke Kohsuke Kawaguchi
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: