[jboss-jira] [JBoss JIRA] (WFLY-4824) Build fails downloading licenses due to insufficient heap space

Michael Musgrove (JIRA) issues at jboss.org
Wed Jun 24 04:07:04 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083107#comment-13083107 ] 

Michael Musgrove commented on WFLY-4824:
----------------------------------------

There is something you can do, namely, increase the default heap size in build.sh ie change

bq.    MAVEN_OPTS="$MAVEN_OPTS -Xmx768M"

to something bigger such as -Xmx1024M"

But the tip you gave is helpful (thank you for that) but I would much rather you fix build.sh instead.

> Build fails downloading licenses due to insufficient heap space
> ---------------------------------------------------------------
>
>                 Key: WFLY-4824
>                 URL: https://issues.jboss.org/browse/WFLY-4824
>             Project: WildFly
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 10.0.0.Alpha3
>            Reporter: Michael Musgrove
>            Assignee: Paul Gier
>
> In our CI cluster we regularly see failures building the feature-pack module due to lack of heap space. Increasing it to 1024 seems to be enough to avoid these intermittent failures. Example output:
> {code}
> [INFO] --- maven-assembly-plugin:2.5.3:single (assemble) @ wildfly-feature-pack ---
> [INFO] Reading assembly descriptor: assembly.xml
> [INFO] Building zip: /home/mmusgrov/source/forks/narayana/jboss-as/feature-pack/target/wildfly-10.0.0.Alpha3-SNAPSHOT.zip
> [INFO] 
> [INFO] --- license-maven-plugin:1.8:download-licenses (default) @ wildfly-feature-pack ---
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 07:09 min
> [INFO] Finished at: 2015-06-23T16:21:09+01:00
> [INFO] Final Memory: 60M/399M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Java heap space -> [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}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list