Skip to content

java.lang.OutOfMemoryError #117

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

Closed
siva517 opened this issue Jul 18, 2017 · 5 comments
Closed

java.lang.OutOfMemoryError #117

siva517 opened this issue Jul 18, 2017 · 5 comments

Comments

@siva517
Copy link

siva517 commented Jul 18, 2017

The builds are getting failed with the error "Can not execute Findbugs: java.lang.OutOfMemoryError: GC overhead limit exceeded -> [Help 1]"

Attached the error screenshot

capture

The current values in sonar.properties file are
sonar.web.javaOpts=-Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError
sonar.ce.javaOpts=-Xmx1024m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true

@siva517
Copy link
Author

siva517 commented Jul 18, 2017

The plugin we are using is sonar-findbugs-plugin-3.4.4

@h3xstream
Copy link
Member

@siva517 Alternatively you can configure the FindBugs Maven plugin and Sonar will pickup the existing report. https://github.com/SonarQubeCommunity/sonar-findbugs/releases/tag/3.6.0

@h3xstream
Copy link
Member

@siva517 Is this specific to SonarQube or this happens in Maven or Gradle integration?

@h3xstream
Copy link
Member

I don't think that modifying the sonar.properties will have an effect on the JVM from Maven.

You can configure the memory allocation to increase it using export MAVEN_OPTS='-Xmx1G -XX:MaxPermSize=256m'.
https://stackoverflow.com/a/12543969/89769

[INFO] The final memory: 20Mo is probably misleading.

@KengoTODA
Copy link
Member

I'll close this stale issue. Feel free to reopen if necessary.

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