Memory Leak : Hudson.model.hudson.labels (java.util.concurrent.ConcurrentHashMap)

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Since the beginning of the year,  we faced with Jenkins 2 master slowdowns : from GC logs, we suspect a memory leak ..

      As you can see, the Old Gen memory increased by more than 800 MB in two weeks.

      To confirm this memory leak suspicious  : we made a heap dump.

      The heap dump shows 51% of the old gen is used to store the attribute Hudson.model.hudson.labels which contains ConcurrentHashMap of 3517 labels used for each jobs launched from the starting of the jvm.

      The ConcurrentHashMap containing labels doesn't appear to remove entries after the job has run.

      This issue seems to be revealed since the workload on Jenkins has increased a lot in recent months.

       

       

            Assignee:
            Raihaan Shouhell
            Reporter:
            Billy
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: