Sunteți pe pagina 1din 9

1/13/2019 SonarQube Users (archive) - java.lang.

OutOfMemoryError: Java heap space

SonarQube (archive) › SonarQube Users (archive) Login Register

java.lang.OutOfMemoryError: Java heap space


‹ Previous Topic

Classic List Threaded

Ad Valentina-18

Lenovo Exclusive Store - Dec 04, 2012; 9:18pm java.lang.OutOfMemoryError: Java heap space
Satya Computer
Solution
Hello all
29 posts
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?

Explore At your thanks you so much


Nearby Store
Vale
Be Productive With 8th
Gen Intel Core &
Windows 10. Buy Now!
[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
Gurugram at java.util.Arrays.sort(Arrays.java:1206)
at java.util.Collections.sort(Collections.java:159)
11AM–9PM
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)
DIRECTIONS 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: [hidden email]
Finished: FAILURE

http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 1/9
1/13/2019 SonarQube Users (archive) - java.lang.OutOfMemoryError: Java heap space

ebenessy

Dec 04, 2012; 9:37pm Re: java.lang.OutOfMemoryError: Java heap space

Hi valentina,

8 posts 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 -Xmx512m

2012/12/4 Valentina <[hidden email]>

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] E t d t
... [show rest of quote]

jpfayolle

Dec 04, 2012; 9:38pm RE: java.lang.OutOfMemoryError: Java heap space

In reply to this post by Valentina-18

218 posts Hi,

Are you using Findbugs?

JP

Jean-Pierre FAYOLLE

www.qualilogy.com

From: Valentina [mailto:[hidden email]]


Sent: martes, 04 de diciembre de 2012 16:49
To: [hidden email]
Subject: [sonar-user] java.lang.OutOfMemoryError: Java heap space

http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 2/9
1/13/2019 SonarQube Users (archive) - 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: [hidden email]

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

http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 3/9
1/13/2019 SonarQube Users (archive) - java.lang.OutOfMemoryError: Java heap space

Valentina-18

Dec 05, 2012; 4:49am Re: java.lang.OutOfMemoryError: Java heap space

In reply to this post by ebenessy

Hello it's exactly what I did,


29 posts I also tried in hudson config maven -Xmx1024m -Xms512m
thanks again

Vale

2012/12/4 El Hassane Benessy <[hidden email]>


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 -Xmx512m

2012/12/4 Valentina <[hidden email]>

Hello all
... [show rest of quote]

Valentina-18

Dec 05, 2012; 4:50am Re: java.lang.OutOfMemoryError: Java heap space

In reply to this post by Valentina-18

No I m not use findbugs :§


29 posts some idea? I put memory to max but nothing

Thanks a lot
Vale

2012/12/4 Jean-Pierre Fayolle <[hidden email]>

Hi,

Are you using Findbugs?

JP

Jean-Pierre FAYOLLE

www.qualilogy.com

... [show rest of quote]

jpfayolle

Dec 05, 2012; 5:47am RE: java.lang.OutOfMemoryError: Java heap space

http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 4/9
1/13/2019 SonarQube Users (archive) - java.lang.OutOfMemoryError: Java heap space
Hola Vale,

218 posts

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

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

Saludos,

JP

Jean-Pierre FAYOLLE

www.qualilogy.com

From: Valentina [mailto:[hidden email]]


Sent: miércoles, 05 de diciembre de 2012 0:21
To: [hidden email]
Cc: [hidden email]
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 <[hidden email]>

Hi,

Are you using Findbugs?

JP

Jean-Pierre FAYOLLE

www.qualilogy.com

From: Valentina [mailto:[hidden email]]


Sent: martes, 04 de diciembre de 2012 16:49
To: [hidden email]
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]

http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 5/9
1/13/2019 SonarQube Users (archive) - java.lang.OutOfMemoryError: Java heap space
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: [hidden email]

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
Dec 05, 2012; 8:50am Re: java.lang.OutOfMemoryError: Java heap space

In reply to this post by Valentina-18

Try installing the https://wiki.jenkins-ci.org/display/JENKINS/Monitoring


2 posts
This allows you to view/clean memory usage and depending how you are starting your hudson instance you can tweak your jvm
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


This allows me to pass configuration like
wrapper.java.additional.5=-XX:MaxPermSize=1024m
wrapper.java.maxmemory=2048

--

http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 6/9
1/13/2019 SonarQube Users (archive) - java.lang.OutOfMemoryError: Java heap space
Robert

From: Valen na <[hidden email]>


Reply-To: "[hidden email]" <[hidden email]>
Date: Tuesday, December 4, 2012 7:48 AM
To: "[hidden email]" <[hidden email]>
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: [hidden email]
Finished: FAILURE

ejaenv

Dec 05, 2012; 1:51pm Re: java.lang.OutOfMemoryError: Java heap space

You could add these params to the JVM to generate a .hprof file :

52 posts -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

http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 7/9
1/13/2019 SonarQube Users (archive) - java.lang.OutOfMemoryError: Java heap space
De: "Bracewell, Robert" <[hidden email]>
Para: "[hidden email]" <[hidden email]>
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
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+


This allows me to pass configuration like
wrapper.java.additional.5=-XX:MaxPermSize=1024m
wrapper.java.maxmemory=2048

--
Robert

From: Valen na <[hidden email]>


Reply-To: "[hidden email]" <[hidden email]>
Date: Tuesday, December 4, 2012 7:48 AM
To: "[hidden email]" <[hidden email]>
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(ViolationTra
at org.sonar.plugins.core.timemachine.ViolationTrackingDecorator.decorate(ViolationTracking
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.
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(LifecycleModuleB
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleB
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarte
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]
http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 8/9
1/13/2019 SonarQube Users (archive) - java.lang.OutOfMemoryError: Java heap space
[ERROR] For more information about the errors and possible solutions, please read the following art
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Sonar analysis completed: FAILURE
Sending e-mails to: [hidden email]
Finished: FAILURE

Matej Perhavec

Dec 05, 2012; 3:21pm Re: java.lang.OutOfMemoryError: Java heap space

In reply to this post by Valentina-18

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.
16 posts

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

Valentina-18
Dec 05, 2012; 6:57pm Re: java.lang.OutOfMemoryError: Java heap space

Thanks you BR !!!


it's working for me !!!
29 posts Vale

2012/12/5 sonarcek <[hidden email]>


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:
... [show rest of quote]

« Return to SonarQube Users (archive) | 2914 views

Free forum by Nabble Disable Popup Ads | Edit this page

http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html 9/9

S-ar putea să vă placă și