java.lang.OutOfMemoryError: Java heap space

676 views
Skip to first unread message

Mehdi Hayani

unread,
Mar 7, 2016, 8:51:59 AM3/7/16
to SonarQube
Hello Team,

II'm having the error below when analyzing a (Java & PLSQL) project with SonarQube 4.3.2

org.apache.maven.lifecycle.LifecycleExecutionException: 
Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project nobel-parent: GC overhead limit exceeded

I saw in some discussions that adding the JVM property -XX:-UseGCOverheadLimit may solve this issue, In fact it did, but I got an other error

org.apache.maven.lifecycle.LifecycleExecutionException: 
Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project nobel-parent: Java heap space
[[ below the stack trace ]]]

PS : I increased the value of Xmx and MaxPermSize but in vain :/ 
-Xms1024m -Xmx1024m -XX:MaxPermSize=1024m -XX:-UseGCOverheadLimit -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC
and in my source code, I've an sql file of 45 Mo I don't know if analyzing large files may generate outOfMemory errors

Thank you in advance for your help
Mehdi


[INFO] [13:45:29.265] Retrieve SCM blame information with encoding UTF-8...
[INFO] [13:45:29.268] Retrieve SCM info for .....plsql/V1.0/V1.0.14/patch-1.0.14.sql
[INFO] [13:45:29.270] Retrieve SCM info for .....plsql/full/sql/data_perimetre.sql
[INFO] [13:45:29.272] Retrieve SCM info for .....plsql/full/sql/data_tableau_bord.sql
[INFO] [13:45:29.278] Retrieve SCM info for .....plsql/full/sql/install.sql
[INFO] [13:45:29.281] Retrieve SCM info for .....plsql/full/sql/uninstall.sql
[INFO] [13:45:29.291] Retrieve SCM info for .....plsql/full/sql/uninstall_old.sql
[INFO] [13:45:29.291] Retrieve SCM info for .....plsql/update.sql
[INFO] [13:45:39.626] Retrieve SCM blame information with encoding UTF-8 done: 10361 ms
[INFO] [13:45:39.630] Sensor ScmActivitySensor done: 10365 ms
[INFO] [13:45:39.630] Sensor CpdSensor...
[INFO] [13:45:39.630] SonarBridgeEngine is used for plsql
[INFO] [13:45:39.630] Cross-project analysis disabled
[WARN] [13:51:18.355] [JOURNAL_FLUSHER] WARNING Journal flush operation took 7,299ms last 8 cycles average is 912ms
Exception in thread "JOURNAL_FLUSHER" Exception in thread "CLEANUP_MANAGER" Exception in thread "JOURNAL_COPIER" java.lang.OutOfMemoryError: Java heap space
	at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:300)
	at java.lang.StringCoding.encode(StringCoding.java:344)

G. Ann Campbell

unread,
Mar 7, 2016, 9:06:45 AM3/7/16
to SonarQube
Hi Mehdi,

Please contact support for commercial plugins.


Thx,
Ann 
Reply all
Reply to author
Forward
0 new messages