Skip to content
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

Can not execute Findbugs with a timeout threshold value of 600000 milliseconds #254

Open
senthilpandy opened this issue Feb 20, 2019 · 3 comments

Comments

@senthilpandy
Copy link

I am facing the issue: Can not execute Findbugs with a timeout threshold value of 600000 milliseconds
This issue encountered after added Findbugs plugin into sonarqube.

sonarqube-6.7.6
Findbugs 3.9.2
Java 1.8

With 600000 Timeout:
INFO: 0/0 source files have been analyzed
INFO: Sensor JavaSquidSensor [java] (done) | time=7560ms
INFO: Sensor FindBugs Sensor [findbugs]
INFO: Loading findbugs plugin: /Cisco/dcnm_repo/dcnm_new/nms/com/cisco/dcbu/vinci/utils/.scannerwork/findbugs/findsecbugs-plugin.jar
INFO: Findbugs output report: /Cisco/dcnm_repo/dcnm_new/nms/com/cisco/dcbu/vinci/utils/.scannerwork/findbugs-result.xml
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 10:24.412s
INFO: Final Memory: 2880M/3730M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Can not execute Findbugs with a timeout threshold value of 600000 milliseconds
ERROR: 
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

With 7200000 Timeout:
01:27:46.920 INFO: Findbugs output report: /Cisco/dcnm_repo/dcnm_new/nms/com/cisco/dcbu/vinci/utils/.scannerwork/findbugs-result.xml
02:13:27.194 WARN: [JOURNAL_FLUSHER] WARNING Journal flush operation took 17,253ms last 8 cycles average is 2,156ms
02:20:46.420 WARN: [JOURNAL_FLUSHER] WARNING Journal flush operation took 7,385ms last 8 cycles average is 3,079ms
02:25:49.816 WARN: [JOURNAL_FLUSHER] WARNING Journal flush operation took 37,048ms last 8 cycles average is 7,711ms
02:32:20.710 WARN: [JOURNAL_FLUSHER] WARNING Journal flush operation took 26,867ms last 8 cycles average is 11,069ms

Is there any Fix / Workaround available?

@senthilpandy
Copy link
Author

This issue persist in following combination also.
sonarqube-7.6
Findbugs 3.10.0 / SpotBugs. 3.1.11

@HarveyHuiZhang
Copy link

I think the issue can be resolved, refer #50

@smilep
Copy link

smilep commented Aug 19, 2020

As per #50 , it works fine with Java-Plugin Version 3.14 and Findbugs 3.3.
Seems like this is a legitimate issue with latest versions of sonar-findbugs where execution time has increased manifold and this should be fixed in the sonar-findbugs. Increasing timeout is just a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants