SonarQube Troubleshooting

Java heap space error or java.lang.OutOfMemoryError,

Increase the memory via the SONAR_SCANNER_OPTS environment variable:

export SONAR_SCANNER_OPTS="-Xmx512m"


On Windows environments, avoid the double-quotes, since they get misinterpreted and combine the two parameters into a single one.

set SONAR_SCANNER_OPTS=-Xmx512m

Unsupported major.minor version

Upgrade the version of Java being used for analysis or use one of the native package (that embed its own Java runtime). SonarQube 5.6+ requires Java 8.

For versions prior to SonarQube 4.1, you can enable debug logging by adding the following to conf/logback.xml:

conf/logback.xml
<logger name="org.sonar.plugins.ldap">
  <level value="DEBUG"/>
  <appender-ref ref="CONSOLE"/>
  <appender-ref ref="SONAR_FILE"/>
</logger>

Time out when running SonarQube analysis using LDAP

These both following parameters can be set in the <SonarQube home>/conf/wrapper.conf file to manage time out :

/conf/wrapper.conf
wrapper.java.additional.6=-Dcom.sun.jndi.ldap.connect.pool.prefsize=0
wrapper.java.additional.7=-Dcom.sun.jndi.ldap.connect.pool.timeout=3600000

http://docs.oracle.com/javase/jndi/tutorial/ldap/connect/config.html

Kerberos Troubleshooting resources


  Call us on +91 700 483 5930   |   +91 700 483 5706     Contact@DevopsSchool.com