java.lang.OutOfMemoryError: GC overhead limit exceeded

Im trying to get a report about the code of a program named Adempiere. Im using Sonar Scanner on the console and after like 39 minutes, the Scanner show me an error message: “java.lang.OutOfMemoryError: GC overhead limit exceded”.
I have been investigating a lot about it and I already increase de heap on the file “sonar.properties to” 10GB and Im still having this problem.
Maybe someone knows how to fix this? I dont know what else to do.
Im using SonarQube 6.0. Thanks!

Here is the full log:

**INFO: Sensor XML Sensor**
**WARN: Unable to parse /Adempiere/com.kkalice.adempiere.migrate/src/com/kkalice/adempiere/migrate/documentation/manual.xml**
**WARN: Cause: org.xml.sax.SAXParseException; lineNumber: 278; columnNumber: 51; The entity "hellip" was referenced, but not declared.**
**WARN: [JOURNAL_FLUSHER] WARNING Journal flush operation took 20.135ms last 8 cycles average is 2.516ms**
**INFO: ------------------------------------------------------------------------**
**INFO: EXECUTION FAILURE**
**INFO: ------------------------------------------------------------------------**
**INFO: Total time: 38:56.867s**
**INFO: Final Memory: 49M/1615M**
**INFO: ------------------------------------------------------------------------**
**ERROR: Error during SonarQube Scanner execution**
**java.lang.OutOfMemoryError: GC overhead limit exceeded**
**        at java.lang.Integer.valueOf(Integer.java:832)**
**        at org.sonar.plugins.xml.parsers.SaxParser$LocationRecordingHandler.setLocationData(SaxParser.java:100)**
**        at org.sonar.plugins.xml.parsers.SaxParser$LocationRecordingHandler.startElement(SaxParser.java:145)**
**        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)**
**        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)**
**        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)**
**        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)**
**        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)**
**        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)**
**        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)**
**        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)**
**        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)**
**        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)**
**        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)**
**        at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)**
**        at org.sonar.plugins.xml.parsers.SaxParser.parse(SaxParser.java:219)**
**        at org.sonar.plugins.xml.parsers.SaxParser.parseDocument(SaxParser.java:226)**
**        at org.sonar.plugins.xml.checks.XmlSourceCode.parseFile(XmlSourceCode.java:76)**
**        at org.sonar.plugins.xml.checks.XmlSourceCode.parseSource(XmlSourceCode.java:70)**
**        at org.sonar.plugins.xml.XmlSensor.runChecks(XmlSensor.java:97)**
**        at org.sonar.plugins.xml.XmlSensor.execute(XmlSensor.java:154)**
**        at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)**
**        at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:57)**
**        at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:49)**
**        at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)**
**        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:184)**
**        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)**
**        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)**
**        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)**
**        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)**
**        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)**
**        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)**
**ERROR:**
**ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.**

Hi,

Editing the sonar.properties file isn’t going to have any impact on the memory available to your analysis. You indicate you’re using the vanilla SonarQube Scanner, so you’ll want to set the SONAR_SCANNER_OPTS env var. Slightly more detail in the docs.

 
Ann

Thank you very much! It Works just fine!!