"IOException: Too many open files" indicates a problem where a process has so many open file handles that it's hitting the maximum imposed by the operating system. This is normally caused by someone opening a file but forgetting to close it, commonly referred to as a "file descriptor leak."
Many users confuse "too many open files" error reported by from their builds as a problem in Jenkins. So make sure the exception you are seeing is coming from Jenkins, and not from tools like Ant or Maven that you run inside Jenkins. You can check this by looking at the stack trace.
For us to fix this problem, we need to know where the leak is occurring. And to this, we need to know what files the process currently opens.
Once you obtained this information, force a GC by visiting
http://yourserver/jenkins/gc, and obtain the list again. If the list shrinks substantially, it suggests that open file handles were pending garbage collection.
Please open a ticket in the issue tracker with all the information (or if you think one of the existing "too many open files" issue shows the same kind of leak, attach your info there.)
While we work on the problem, you can often work around the problem as follows: