Status: Open (View Workflow)
Jenkins ver. 2.176.3
We have a jenkins master and slave running several docker based jobs every minute.
The execution times of each job is well under a minute, the longest one is 45 seconds.
Each job gets to https://github.com/jenkinsci/docker-workflow-plugin/blob/0540c1482c4b18beaa0f036491d5a732f0e024b0/src/main/java/org/jenkinsci/plugins/docker/workflow/WithContainerStep.java#L196 and hangs.
Looking at the thread dump (attached) threads are blocking on hudson.model.Fingerprint.save(Fingerprint.java:1244).
Further investigation yielded that these saves are writing to the jenkins fingerprint files.
Looking at the master server, the fingerprints directory is varying by hundreds of MBs every second.
There are several large xml files being created in the subdirectories containing ContainerRecords many for containers which are not currently returned by docker ps -a.
The number of build logs to keep is set to 25.
The disk used by the jenkins master is getting hammered more than several high usage production databases we have running in production (image attached).
- is related to
JENKINS-60570 Docker fingerprint data written to file from WithContainerStep.java never gets cleaned up when image is used repeatedly
- relates to
JENKINS-49235 Fingerprinting added in ssh-slaves causes memory-leak and performance issue with dynamic slaves
Latest version of the docker-workflow plugin seems to have removed that fingerprinting
raihaan There is no `docker-workflow` plugin? Not sure what to do to get this fix?
Thats docker pipeline plugin its shortname is docker-workflow-plugin
Similar issue was found in the credentials plugin