Note that there are some explanatory texts on larger screens.

plurals
  1. POOutOfMemoryError building Apache Sling
    primarykey
    data
    text
    <p>I get the following error running the maven build for Apache Sling, even with the recommended heap size:</p> <pre><code>main: [echo] **************** WARNING (SLING-443/SLING-1782) ****************************** [echo] On most platforms, you'll get OutOfMemoryErrors when building unless you set [echo] on 32bit platforms: MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=256M", see SLING-443 [echo] on 64bit platforms: MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M", see SLING-1782 [echo] ****************************************************************************** [INFO] Executed tasks [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ sling-launchpad-webapp-archetype --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/thomasf/slingDownload/sling/maven/archetypes/launchpad-webapp/src/test/resources [INFO] Copying 3 resources [INFO] [INFO] --- animal-sniffer-maven-plugin:1.7:check (default) @ sling-launchpad-webapp-archetype --- [INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0 [ERROR] Java heap space -&gt; [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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 </code></pre> <p>Sure enough my heap size is the same that they recommend on the project homepage:</p> <pre><code>echo $MAVEN_OPTS -Xmx512M -XX:MaxPermSize=512m </code></pre> <p>I suspect that the cause is that maven is forking and the jvm in the child process does not have the same heap size - however I cannot identify which plugin is forking from the console output.</p> <p>Any ideas appreciated !!! Thanks </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload