bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Bogdanoff (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BIGTOP-472) make deb fails when building Whirr - OutOfMemoryError: PermGen space
Date Tue, 20 Mar 2012 17:29:38 GMT

     [ https://issues.apache.org/jira/browse/BIGTOP-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ron Bogdanoff updated BIGTOP-472:
---------------------------------

    Attachment: package.mk.diff

suggested patch
                
> make deb fails when building Whirr - OutOfMemoryError: PermGen space
> --------------------------------------------------------------------
>
>                 Key: BIGTOP-472
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-472
>             Project: Bigtop
>          Issue Type: Bug
>          Components: Debian
>    Affects Versions: 0.3.0
>         Environment: Ubuntu 10.04 LTS (Lucid).  Sun JDK 1.6.0_26-b03
>            Reporter: Ron Bogdanoff
>              Labels: patch
>         Attachments: package.mk.diff
>
>
> During 'make deb' Whirr fails to build because the Sun JVM (running Maven) is out of
Permanent Generation space (this is *not* heap space).
> By setting the env variable MAVEN_OPTS=-XX:MaxPermSize=128m this parameter will be used
when Maven evokes the JVM and 128m seems to be sufficient PermGen space to complete the make
deb (I have tested this).
> HOWEVER, setting this env variable is not enough.  There needs to be a change to package.mk
so debuild will 'perserve' this env variable and pass it to the (presumably) forked process
where maven runs.  See the debuild man pages ENVIRONMENT VARIABLES section for documentation
on this.
> So, without the MAVEN_OPTS env var 'preserved' by debuild in package.mk, setting MAVEN_OPTS
alone will have no affect on make deb.
> Attached is a suggested change to package.mk (just adding --preserve-envvar MAVEN_OPTS
) - not sure if this is the best way to handle this, but this is what I did locally to complete
make deb on 0.3.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message