Too many open files Félix Belzunce Arcos July 13, 2022 12:48 Updated The content of this article has moved to the new documentation site. Related articles Prepare Jenkins for Support How can I purge/clean the build queue? Why is my instance not getting the right information from CloudBees Update Center starting on October 19th, 2021? How to block access to URLs vulnerable to SECURITY-2469/CVE-2021-21678 How to Upload a file in a Pipeline Comments 2 comments Sort by Date Votes Jason Azze October 30, 2015 15:48 "Note that this assumes jenkins is the Unix user running the Jenkins process." Indeed. And if you're running JOC, the user is probably jenkins-oc. It only took me a couple of hours to figure out I was changing the limits for the wrong user. 0 Steven Christenson August 31, 2017 06:54 Edited Based on our results, it may NOT be sufficient to increase the Jenkins limits if the system limit is lower.Here is one guide that may helpIn summary: Check the system limit: cat /proc/sys/fs/file-max Increase the system limit: sudo sysctl -w fs.file-max=100000 Make the increase permanent: sudo vi /etc/sysctl.conf change or add the line "fs.file-max = 100000" If you are spawning processes that run as other users, you may need to add /etc/security/limits.conf for those user(s) as well. Jenkins may need to be restarted to make all changes take effect.If you have the metrics plugin installed, you can monitor the file-handle limit RATIO (called vm.file.descriptor.ratio)There is a known file handle leak in 2.60.x Jenkins that manifests as a constant leak of log files. We've watched Jenkins accumulate 1000 additional file handles per day. 1 Please sign in to leave a comment.