-
Bug
-
Resolution: Unresolved
-
Major
We have a Jenkins instance that is heavily utilizing Build Pipeline plugin. On a weekly or bi-weekly basis, Jenkins runs out of memory. Taking a heapdump and analyzing it for leak suspects indicated that build pipeline plugin is a culprit. Below are tables from leak suspects report taken from the heapdump:
Label | Number of Objects | Used Heap Size | Retained Heap Size |
---|---|---|---|
au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm | 7,126,445 | 285,057,800 | 1,881,469,128 |
– java.util.HashMap$Entry | 6,535,640 | 209,140,480 | 1,669,522,544 |
Total: 2 entries | 13,662,085 | 494,198,280 | 3,550,991,672 |
Given the fact that the JVM runs on 8G of heapspace, total size of objects related to build pipeline plugin occupies nearly half of that. Big difference between retained and used heap sizes shows that heap space is not being freed fast enough.
I'm also attaching a screenshot of heap dump histogram for a more complete picture.
Version of Jenkins: 1.588
Version of build pipeline plugin: 1.4.5
- is duplicated by
-
JENKINS-16961 memory leak in Build Pipeline plugin (BuildForm)
-
- Open
-
I seem to have run into the same problem. We had many piplelines and three build piplelines among them were set to show last 50, 50 and 100 builds respectively. The heapsize was always above 1.5 GB with this setting. When I changed it to show last 5 builds only, the heapsize dropped to 600 MB. I donot know why so much heapsize was reduced on changing the settings. Something to try as a workaround until proper reason is found.
Please find attached snapshots of the heapsize and no.of instances initialized for before and after setting changes.