Discussion:
java.lang.OutOfMemoryError: Java heap space
Valentina
2012-12-04 15:48:41 UTC
Permalink
Hello all

I use Sonar in my project during one year and was OK, but since the last
week I'm getting the out of memory
the project size has 2.5 G
I lunch sonar 3.0 via Hudson version 1.3
I tried to lunch skipping test and graphics analisys disabled, or reboot
hudson, machine but it's the same message
when I lunch one module independlenly is ok

You have some idea?

thanks you so much

Vale


[INFO] [15:28:59.549] Sensor Maven dependencies done: 2259 ms
[INFO] [15:28:59.879] Execute decorators...
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.sort(Arrays.java:1206)
at java.util.Collections.sort(Collections.java:159)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(ViolationTrackingDecorator.java:136)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTrackingDecorator.java:70)
at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55)
at org.sonar.batch.phases.Phases.execute(Phases.java:94)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59)
at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143)
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Sonar analysis completed: FAILURE
Sending e-mails to: valentina.yauri3-***@public.gmane.org
Finished: FAILURE
El Hassane Benessy
2012-12-04 16:07:20 UTC
Permalink
Hi valentina,

Try to increase the JVM heap size for Maven with the following args :
-Xmx512m

This will set 512M to the JVM heap size, if it does not work, try it with
-Xmx1024m


In the Hudson configuration page :

MAVEN_OPTS global
Post by Valentina
Hello all
I use Sonar in my project during one year and was OK, but since the last
week I'm getting the out of memory
the project size has 2.5 G
I lunch sonar 3.0 via Hudson version 1.3
I tried to lunch skipping test and graphics analisys disabled, or reboot
hudson, machine but it's the same message
when I lunch one module independlenly is ok
You have some idea?
thanks you so much
Vale
[INFO] [15:28:59.549] Sensor Maven dependencies done: 2259 ms
[INFO] [15:28:59.879] Execute decorators...
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.sort(Arrays.java:1206)
at java.util.Collections.sort(Collections.java:159)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(ViolationTrackingDecorator.java:136)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTrackingDecorator.java:70)
at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55)
at org.sonar.batch.phases.Phases.execute(Phases.java:94)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59)
at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143)
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Sonar analysis completed: FAILURE
Finished: FAILURE
Valentina
2012-12-04 23:19:04 UTC
Permalink
Hello it's exactly what I did,
I also tried in hudson config maven -Xmx1024m -Xms512m
thanks again

Vale
Post by El Hassane Benessy
Hi valentina,
-Xmx512m
This will set 512M to the JVM heap size, if it does not work, try it with
-Xmx1024m
MAVEN_OPTS global
Post by Valentina
Hello all
I use Sonar in my project during one year and was OK, but since the last
week I'm getting the out of memory
the project size has 2.5 G
I lunch sonar 3.0 via Hudson version 1.3
I tried to lunch skipping test and graphics analisys disabled, or reboot
hudson, machine but it's the same message
when I lunch one module independlenly is ok
You have some idea?
thanks you so much
Vale
[INFO] [15:28:59.549] Sensor Maven dependencies done: 2259 ms
[INFO] [15:28:59.879] Execute decorators...
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.sort(Arrays.java:1206)
at java.util.Collections.sort(Collections.java:159)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(ViolationTrackingDecorator.java:136)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTrackingDecorator.java:70)
at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55)
at org.sonar.batch.phases.Phases.execute(Phases.java:94)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59)
at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143)
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Sonar analysis completed: FAILURE
Finished: FAILURE
Jean-Pierre Fayolle
2012-12-04 16:08:37 UTC
Permalink
Hi,



Are you using Findbugs?

JP



Jean-Pierre FAYOLLE

www.qualilogy.com







From: Valentina [mailto:valeyauri-***@public.gmane.org]
Sent: martes, 04 de diciembre de 2012 16:49
To: user-***@public.gmane.org
Subject: [sonar-user] java.lang.OutOfMemoryError: Java heap space




Hello all

I use Sonar in my project during one year and was OK, but since the last
week I'm getting the out of memory
the project size has 2.5 G
I lunch sonar 3.0 via Hudson version 1.3
I tried to lunch skipping test and graphics analisys disabled, or reboot
hudson, machine but it's the same message
when I lunch one module independlenly is ok

You have some idea?

thanks you so much

Vale



[INFO] [15:28:59.549] Sensor Maven dependencies done: 2259 ms
[INFO] [15:28:59.879] Execute decorators...
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.sort(Arrays.java:1206)
at java.util.Collections.sort(Collections.java:159)
at
org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(
ViolationTrackingDecorator.java:136)
at
org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(Viola
tionTrackingDecorator.java:70)
at
org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecuto
r.java:79)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecuto
r.java:70)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecuto
r.java:63)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecuto
r.java:63)
at
org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55
)
at org.sonar.batch.phases.Phases.execute(Phases.java:94)
at
org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at
org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
at
org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
at
org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at
org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59)
at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143)
at
org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPl
uginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:2
09)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
53)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
45)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
cycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
cycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
ecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
r.java:161)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Sonar analysis completed: FAILURE
Sending e-mails to: valentina.yauri3-***@public.gmane.org
Finished: FAILURE






Comprobado por AVG - www.avg.com
Versión: 2012.0.2221 / Base de datos de virus: 2634/5435 - Fecha de
publicación: 12/03/12
Valentina
2012-12-04 23:20:46 UTC
Permalink
No I m not use findbugs :§
some idea? I put memory to max but nothing

Thanks a lot
Vale
Hi,****
** **
Are you using Findbugs?****
JP****
** **
Jean-Pierre FAYOLLE****
www.qualilogy.com****
** **
** **
** **
*Sent:* martes, 04 de diciembre de 2012 16:49
*Subject:* [sonar-user] java.lang.OutOfMemoryError: Java heap space****
** **
Hello all
I use Sonar in my project during one year and was OK, but since the last
week I'm getting the out of memory
the project size has 2.5 G
I lunch sonar 3.0 via Hudson version 1.3
I tried to lunch skipping test and graphics analisys disabled, or reboot
hudson, machine but it's the same message
when I lunch one module independlenly is ok
You have some idea?
thanks you so much
Vale
****
[INFO] [15:28:59.549] Sensor Maven dependencies done: 2259 ms****
[INFO] [15:28:59.879] Execute decorators...****
[ERROR] Java heap space -> [Help 1]****
java.lang.OutOfMemoryError: Java heap space****
at java.util.Arrays.sort(Arrays.java:1206)****
at java.util.Collections.sort(Collections.java:159)****
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(ViolationTrackingDecorator.java:136)****
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTrackingDecorator.java:70)****
at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)****
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70)****
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)****
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)****
at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55)****
at org.sonar.batch.phases.Phases.execute(Phases.java:94)****
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)****
at org.sonar.batch.bootstrap.Module.start(Module.java:83)****
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)****
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)****
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)****
at org.sonar.batch.bootstrap.Module.start(Module.java:83)****
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)****
at org.sonar.batch.bootstrap.Module.start(Module.java:83)****
at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72)****
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59)****
at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143)****
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)****
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)****
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)****
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)****
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)****
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)****
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)****
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)****
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)****
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)****
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)****
[ERROR] ****
[ERROR] Re-run Maven using the -X switch to enable full debug logging.****
[ERROR] ****
[ERROR] For more information about the errors and possible solutions, please read the following articles:****
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError****
Sonar analysis completed: FAILURE****
Finished: FAILURE****
****
Comprobado por AVG - www.avg.com
Versión: 2012.0.2221 / Base de datos de virus: 2634/5435 - Fecha de
publicación: 12/03/12****
Jean-Pierre Fayolle
2012-12-05 00:17:57 UTC
Permalink
Hola Vale,



Not sure I can help but if you give some indications about your context /
environment : JVM options, plugins/jars/code, … probably someone could help.

Looks you are using Maven so a log with the debug option –X might help too.

Saludos,

JP



Jean-Pierre FAYOLLE

www.qualilogy.com







From: Valentina [mailto:valeyauri-***@public.gmane.org]
Sent: miércoles, 05 de diciembre de 2012 0:21
To: user-***@public.gmane.org
Cc: jp.fayolle-dMW70wOZ7S/qlBn2x/***@public.gmane.org
Subject: Re: [sonar-user] java.lang.OutOfMemoryError: Java heap space



No I m not use findbugs :§

some idea? I put memory to max but nothing



Thanks a lot

Vale

2012/12/4 Jean-Pierre Fayolle <jp.fayolle-dMW70wOZ7S/qlBn2x/***@public.gmane.org>

Hi,



Are you using Findbugs?

JP



Jean-Pierre FAYOLLE

<http://www.qualilogy.com> www.qualilogy.com







From: Valentina [mailto:valeyauri-***@public.gmane.org]
Sent: martes, 04 de diciembre de 2012 16:49
To: user-***@public.gmane.org
Subject: [sonar-user] java.lang.OutOfMemoryError: Java heap space




Hello all

I use Sonar in my project during one year and was OK, but since the last
week I'm getting the out of memory
the project size has 2.5 G
I lunch sonar 3.0 via Hudson version 1.3
I tried to lunch skipping test and graphics analisys disabled, or reboot
hudson, machine but it's the same message
when I lunch one module independlenly is ok

You have some idea?

thanks you so much

Vale

[INFO] [15:28:59.549] Sensor Maven dependencies done: 2259 ms
[INFO] [15:28:59.879] Execute decorators...
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.sort(Arrays.java:1206)
at java.util.Collections.sort(Collections.java:159)
at
org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(
ViolationTrackingDecorator.java:136)
at
org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(Viola
tionTrackingDecorator.java:70)
at
org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecuto
r.java:79)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecuto
r.java:70)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecuto
r.java:63)
at
org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecuto
r.java:63)
at
org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55
)
at org.sonar.batch.phases.Phases.execute(Phases.java:94)
at
org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at
org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
at
org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
at
org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at
org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59)
at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143)
at
org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPl
uginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:2
09)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
53)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
45)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
cycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
cycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
ecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
r.java:161)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Sonar analysis completed: FAILURE
Sending e-mails to: valentina.yauri3-***@public.gmane.org
Finished: FAILURE




Comprobado por AVG - www.avg.com
Versión: 2012.0.2221 / Base de datos de virus: 2634/5435 - Fecha de
publicación: 12/03/12




Comprobado por AVG - www.avg.com
Versión: 2012.0.2221 / Base de datos de virus: 2634/5436 - Fecha de
publicación: 12/04/12
Bracewell, Robert
2012-12-05 03:20:33 UTC
Permalink
Try installing the https://wiki.jenkins-ci.org/display/JENKINS/Monitoring
This allows you to view/clean memory usage and depending how you are starting your hudson instance you can tweak your jvm settings and they should be reflected through use of this plugin

I start my jenkins instance using the Java service wrapper (https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Unix+daemon)
This allows me to pass configuration like
wrapper.java.additional.5=-XX:MaxPermSize=1024m
wrapper.java.maxmemory=2048

--
Robert

From: Valentina <valeyauri-***@public.gmane.org<mailto:valeyauri-***@public.gmane.org>>
Reply-To: "user-***@public.gmane.org<mailto:user-***@public.gmane.org>" <***@sonar.codehaus.org<mailto:user-***@public.gmane.org>>
Date: Tuesday, December 4, 2012 7:48 AM
To: "user-***@public.gmane.org<mailto:user-***@public.gmane.org>" <***@sonar.codehaus.org<mailto:user-***@public.gmane.org>>
Subject: [sonar-user] java.lang.OutOfMemoryError: Java heap space


Hello all

I use Sonar in my project during one year and was OK, but since the last week I'm getting the out of memory
the project size has 2.5 G
I lunch sonar 3.0 via Hudson version 1.3
I tried to lunch skipping test and graphics analisys disabled, or reboot hudson, machine but it's the same message
when I lunch one module independlenly is ok

You have some idea?

thanks you so much

Vale



[INFO] [15:28:59.549] Sensor Maven dependencies done: 2259 ms
[INFO] [15:28:59.879] Execute decorators...
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.sort(Arrays.java:1206)
at java.util.Collections.sort(Collections.java:159)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(ViolationTrackingDecorator.java:136)
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTrackingDecorator.java:70)
at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63)
at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55)
at org.sonar.batch.phases.Phases.execute(Phases.java:94)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59)
at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143)
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Sonar analysis completed: FAILURE
Sending e-mails to: valentina.yauri3-***@public.gmane.org<mailto:valentina.yauri3-***@public.gmane.org>
Finished: FAILURE
Enric Jaen
2012-12-05 08:21:58 UTC
Permalink
You could add these params to the JVM to generate a .hprof file : 

-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=<your log dir>


and analyse with a java profiler (for example eclipse MAT plugin [1])  what is eating the memory.

[1] http://www.eclipse.org/mat/

HTH
/Enric Jaen


________________________________
De: "Bracewell, Robert" <rbracewe-Rm6X0d1/***@public.gmane.org>
Para: "user-***@public.gmane.org" <***@sonar.codehaus.org>
Enviado: Miércoles 5 de diciembre de 2012 4:20
Asunto: Re: [sonar-user] java.lang.OutOfMemoryError: Java heap space


Try installing the https://wiki.jenkins-ci.org/display/JENKINS/Monitoring
This allows you to view/clean memory usage and depending how you are starting your hudson instance you can tweak your jvm settings and they should be reflected through use of this plugin

I start my jenkins instance using the Java service wrapper (https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Unix+daemon)
This allows me to pass configuration like
wrapper.java.additional.5=-XX:MaxPermSize=1024m
wrapper.java.maxmemory=2048

--
Robert
From: Valentina <valeyauri-***@public.gmane.org>
Reply-To: "user-***@public.gmane.org" <user-***@public.gmane.org>
Date: Tuesday, December 4, 2012 7:48 AM
To: "user-***@public.gmane.org" <***@sonar.codehaus.org>
Subject: [sonar-user] java.lang.OutOfMemoryError: Java heap space



Hello all

I use Sonar in my project during one year and was OK, but  since the last week I'm getting the out of memory
the project size has 2.5 G
I lunch sonar 3.0 via Hudson version 1.3
I tried to lunch skipping test and graphics analisys disabled, or reboot hudson, machine but it's the same message
when I lunch one module independlenly is ok

You have some idea?

thanks you so much

Vale



[INFO] [15:28:59.549] Sensor Maven dependencies done: 2259 ms
[INFO] [15:28:59.879] Execute decorators...
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.sort(Arrays.java:1206) at java.util.Collections.sort(Collections.java:159) at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.mapViolations(ViolationTrackingDecorator.java:136) at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTrackingDecorator.java:70) at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:70) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:63) at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:55) at org.sonar.batch.phases.Phases.execute(Phases.java:94) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) at
org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:109) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:72) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:59) at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError Sonar analysis completed: FAILURE
Sending e-mails to: valentina.yauri3-***@public.gmane.org Finished: FAILURE
sonarcek
2012-12-05 09:51:44 UTC
Permalink
Hi, I had same issue yesterday. I don't know if you are deploying Sonar as
war file with tomcat or just using it from folder.

For me it worked that I changed values in wrapper.conf file in conf folder
to:

# Java Additional Parameters
wrapper.java.additional.1=-Djava.awt.headless=true
wrapper.java.additional.2=-XX:MaxPermSize=512m

# Initial Java Heap Size (in MB)
wrapper.java.initmemory=512

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=2048


If you are deploying it as war file, you could also try this:

CATALINA_OPTS="-Xmx1024m
-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true
-XX:MaxPermSize=256m"


Hope this helps you somehow.

BR,
sonarcek



--
View this message in context: http://sonar.15.n6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp5006118p5006140.html
Sent from the Sonar user mailing list archive at Nabble.com.
Valentina
2012-12-05 13:27:25 UTC
Permalink
Thanks you BR !!!
it's working for me !!!
Vale
Post by sonarcek
Hi, I had same issue yesterday. I don't know if you are deploying Sonar as
war file with tomcat or just using it from folder.
For me it worked that I changed values in wrapper.conf file in conf folder
# Java Additional Parameters
wrapper.java.additional.1=-Djava.awt.headless=true
wrapper.java.additional.2=-XX:MaxPermSize=512m
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=512
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=2048
CATALINA_OPTS="-Xmx1024m
-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true
-XX:MaxPermSize=256m"
Hope this helps you somehow.
BR,
sonarcek
--
http://sonar.15.n6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp5006118p5006140.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Loading...