Maven Sonar Out Of Memory Error
Contents |
here for a quick overview of the
Java.lang.outofmemoryerror Java Heap Space Sonar Runner
site Help Center Detailed answers to any questions you might have
Sonar_runner_opts
Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company
Sonarqube Heapdumponoutofmemoryerror
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just sonar jvm options like you, helping each other. Join them; it only takes a minute: Sign up Sonar analysis gives out of memory error, should I increase JVM heap space of Ant or Sonar server? up vote 6 down vote favorite 3 I am analysing a large project in Sonar and get the following error: [sonar:sonar] 03:55:39.511 INFO p.PhasesTimeProfiler - Execute decorators... BUILD FAILED [...] [...] java.lang.OutOfMemoryError: Java heap space at org.sonar.batch.index.MeasurePersister.model(MeasurePersister.java:127) at org.sonar.batch.index.MeasurePersister.getMeasuresToSave(MeasurePersister.java:117) at org.sonar.batch.index.MeasurePersister.dump(MeasurePersister.java:70) at org.sonar.batch.index.DefaultPersistenceManager.dump(DefaultPersistenceManager.java:63) at org.sonar.batch.phases.Phases.execute(Phases.java:95) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:131) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:121) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:121) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.Batch.execute(Batch.java:104) at org.sonar.ant.Launcher.execute(Launcher.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:244) at org.sonar.ant.SonarTask.execute(SonarTask.java:193) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:2
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of sonarqube gc overhead limit exceeded this site About Us Learn more about Stack Overflow the company Business sonar_runner_opts is not configured Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask sonarqube permgen space Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up http://stackoverflow.com/questions/14253218/sonar-analysis-gives-out-of-memory-error-should-i-increase-jvm-heap-space-of-an Eclipse / Sonar Analysis - java.lang.OutOfMemoryError: PermGen space up vote 1 down vote favorite Good morning, i am trying to syncronize my Eclipse project with the Sonar server we have in our Company. I tried with 2 completely different computers/environments but cannot find a solution, even if I tried to apply every suggested tip found here (stackOverflow) or elsewhere. It seems (as clearly http://stackoverflow.com/questions/24953951/eclipse-sonar-analysis-java-lang-outofmemoryerror-permgen-space explained by the stacktrace) that I may have a memory lack and, since the project is really huge, it may be obvious, but pheraps I cannot (or I don't know) how to launch eclipse with more memory. I modified the eclipse.ini as below: -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326 -product org.eclipse.epp.package.standard.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 1024m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.7 -Xms512m -Xmx2048m -XX:MaxPermSize=2048m but nothing. Later modified the Windows / Preferences / SonarQube / JVM arguments for analysis with: -Xmx2048m Tried later Windows / Preferences / SonarQube / Preview Analysis Properties with: wrapper.java.maxmemory = 6000 but nothing. Eclipse cannot finish analysis (maybe just cannot store data in local db). These are the environment specs (of the best machine...): Windows 8 64bit - 8GB RAM java version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b147) Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode) Eclipse Standard/SDK Version: Luna Release (4.4.0) Build id: 20140612-0600 Retrieve remote issues of project PREPRODUZIONE... Start SonarQube analysis on PREPRODUZIONE... INFO: SonarQube Server 4.3 11:09:32.970 INFO - Incremental mode 11:09:32.972 INFO - Load batch settings 11:09:33.196 INFO - User cache: C:\Users\alex\.sonar\cache 11:09:33.201 I
Viewed Profile Network Labels Watches Drafts Settings Log Out Dashboard Jenkins … Home Use Jenkins I'm getting OutOfMemoryError Builds failing with OutOfMemoryErrors Edit Add Page Gliffy Diagram https://wiki.jenkins-ci.org/display/JENKINS/Builds+failing+with+OutOfMemoryErrors Comment Attachment Tools Attachments (4) Page History Restrictions Edit in Word Favourite http://sonarqube-archive.15.x6.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-td5006118.html Watch Stop Watching Info Link to this Page… View in Hierarchy View Wiki Markup Export to PDF Export to Word Import Word Document Copy Move Builds failing with OutOfMemoryErrors Skip to end of metadata Page restrictions apply Attachments:4 Added by recampbell Campbell, last edited by Jeff Dickerson on Aug 18, 2015 out of (view change) show comment hide comment Comment: Encapsulating in excerpt tags for reuse Go to start of metadata Jenkins Home Mailing lists Source code Bugtracker Security Advisories Events Donation Commercial Support Wiki Site Map Documents Meet Jenkins Use Jenkins Extend Jenkins Plugins Servlet Container Notes Builds running out of memory? Heap or Permgen? Various Build Tools Maven2/3 Project Type Freestyle projects with Maven Build out of memory Steps Gradle build steps Ant build steps Builds running out of memory? As your project grows, and you use new tools to either build or analyze your code, you will inevitably exceed the memory settings which your JVM provides by default. This is especially true on 64 bit JVM's since they double the size of the reference pointer. This page aims to show you how to increase the memory available to your build process. Heap or Permgen? There are two OutOfMemoryErrors which people usually encounter. The first is related to heap space: java.lang.OutOfMemoryError: Heap spaceWhen you see this, you need to increase the maximum heap space. You can do this by adding the following to your JVM arguments -Xmx200m where you replace the number 200 with the new heap size in megabytes. The second is related to PermGen: java.lang.OutOfMemoryError: PermGen space. When you see this, you need to increase the maximum Permanent Generation space, which is used for things like class files and interned strings. You can do this by adding the following to your JVM arguments -XX:MaxPermSize=128mwhere you replace the number 128 with the new PermGen size in megabytes.
10 messages Valentina-18 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ java.lang.OutOfMemoryError: Java heap space Hello allI use Sonar in my project during one year and was OK, but since the last week I'm getting the out of memorythe project size has 2.5 G I lunch sonar 3.0 via Hudson version 1.3I 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 okYou have some idea?thanks you so muchVale[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(MojoExecut