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

Memory leak in hudson.ClassicPluginStrategy$AntClassLoader2 and org.eclipse.jetty.webapp.WebAppClassLoader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Critical
    • core

    Description

      We have tests constantly running on 6 jenkins slaves, every week or two jenkins becomes unstable because of memory issues.

       

      I have enabled GC logging, and using to gceasy.io I can clearly see that memory usage is increasing over time (included graph).

       

      Also took some jmap heap dumps which shows increasing number of "org.jruby.RubyObject" and "hudson.model.FreeStyleBuild" instances. (screenshots attached, one of them is taken after 3 days of start and another one after 7 days)

      Also included screenshots of common path to accumulation point (maybe it helps). Not sure we can upload jmap dumps (I assume they can contain sensitive information, e.g passwords, ssh private keys).

       

      Our jobs are configured to keep only 100 last builds.

       

       

      Attachments

        1. Screen Shot 2017-04-13 at 09.32.30.png
          233 kB
          Tarvi Pillessaar
        2. Screen Shot 2017-04-17 at 08.46.59.png
          178 kB
          Tarvi Pillessaar
        3. Screen Shot 2017-04-17 at 09.06.18.png
          236 kB
          Tarvi Pillessaar
        4. Screen Shot 2017-04-17 at 09.27.18.png
          430 kB
          Tarvi Pillessaar
        5. Screen Shot 2017-04-17 at 09.27.38.png
          442 kB
          Tarvi Pillessaar
        6. Screen Shot 2017-04-17 at 09.30.59.png
          222 kB
          Tarvi Pillessaar

        Activity

          People

            Unassigned Unassigned
            tarvi Tarvi Pillessaar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: