SonarQube java.lang.OutOfMemoryError: GC overhead limit exceeded -


i getting outofmemoryexception while performing sonar analysis on project. jenkins job shows analysis report generated during background task in sonarqube failing below exception.,

2016.08.24 10:55:52 info  [o.s.s.c.s.computationstepexecutor] compute comment measures | time=14ms 2016.08.24 10:56:01 info  [o.s.s.c.s.computationstepexecutor] copy custom measures | time=9075ms 2016.08.24 10:56:02 info  [o.s.s.c.s.computationstepexecutor] compute duplication measures | time=150ms 2016.08.24 10:56:34 error [o.s.s.c.c.computeenginecontainerimpl] cleanup of container failed java.lang.outofmemoryerror: gc overhead limit exceeded 2016.08.24 10:56:34 error [o.s.s.c.t.ceworkercallableimpl] failed execute task ava6ex7gdswg1hqk_vvc java.lang.outofmemoryerror: java heap space 2016.08.24 10:56:34 error [o.s.s.c.t.ceworkercallableimpl] executed task | project=iserve | id=ava6ex7gdswg1hqk_vvc | time=53577ms 

hi solved problem in 2 ways 2 different scenarios found issue

  1. case : when using jenkins :: facing problem time ago, sonar analysis worked fine on command line failedon jenkins, can replace %sonar_runner_opts% -xms256m -xmx1024m increase heap size in sonar-runner bat file.

  2. case : when using command line :: got errorsometimes when using cmd line run sonar analysis , in cas solution create more number of modules, somehow works , dont java out of mem error.

hope helps :)


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -