-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too many opened file handles to spotbugs plugins #35
Comments
note from my investigation:
So I guess that we should invoke this I will test following patch later. diff --git a/spotbugs/src/main/java/edu/umd/cs/findbugs/FindBugs2.java b/spotbugs/src/main/java/edu/umd/cs/findbugs/FindBugs2.java
index dc061d2a8..1be3e9691 100644
--- a/spotbugs/src/main/java/edu/umd/cs/findbugs/FindBugs2.java
+++ b/spotbugs/src/main/java/edu/umd/cs/findbugs/FindBugs2.java
@@ -1185,7 +1185,7 @@ public class FindBugs2 implements IFindBugsEngine {
FindBugs.runMain(findBugs, commandLine);
-
+ findBugs.clearCaches();
} UPDATE
|
spotbugs/spotbugs#589 is similar with this issue, but this issue's target is mainly jar files in classpath to scan. |
@svilenvul let me confirm: are your Maven uses |
No, currently it is not being used. |
Almost all opened file isn't not spotbugs plugin, but libraries in aux classpath. In current architecture, spotbugs keeps all jar files opened during analysis (because |
Has there been any progress? We are now seeing this frequently on our Jenkins CI server (we are using -T and there can also be concurrent builds). |
This issue is likely related to #535 that has existed in this code base since its original inception with findbugs. Has to do with the -T and it getting locks as system.in was being called. This is to be removed in upcoming release 4.7.3.1 within the week. |
closing as believe fixed with 4.7.3.1. If still an issue, please open a new ticket based off current data. |
We are running the spotbugs-maven-plugin programmatically in a multi-module Maven project. This is why it is difficult to describe the exact spotbugs maven plugin configuration, this is why I will attach part of the Maven debug logs, where this can be seen:
spotbugs-config.txt
While trying to set up a Jenkins job, we faced ‘Too many open files’ problem causing the build to fail.
We started investigating the problem and found out that there is a huge number of opened files (spotbugs plugins).
I attach here the output of the following command
ls -l /proc/MAVEN_PID/fd/ > openfiles.txt
:openfiles.txt
They are all located in the target directory.
Used spotbugs-maven-plugin/3.1.3 with spotbugs 3.1.2
The text was updated successfully, but these errors were encountered: