On Sat, 2011-03-19 at 18:18 -0400, DJ Gregor wrote:
> FYI, change 1268bd7c9cec25008b3f8604bbe3566e6e941dbf keeps me from
> building OpenNMS on my (now ancient) MacBook Pro with only 2GB of RAM. 
> The JVM for Maven won't even start:
> 
> -----------------------------------------------------------------------
> $ ./compile.pl
> [WARN] $JAVA_HOME is not set, things might go wonky.  Or not.
> [INFO] MAVEN_OPTS = -XX:PermSize=512m -XX:MaxPermSize=1g -Xmx1g
> -XX:ReservedCodeCacheSize=512m
> [INFO] running:
> /Users/dgregor-unencrypted/opennms/master/opennms/maven/bin/mvn
> -Droot.dir=/Users/dgregor-unencrypted/opennms/master/opennms
> -Djava.awt.headless=true -Dmaven.test.skip.exec=true install
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
> [ERROR] child exited with value 1
> -----------------------------------------------------------------------
> 
> If I remove "-XX:ReservedCodeCacheSize=512m" from $MAVEN_OPTS in
> functions.pl (which reverts the change below), it works fine.
> 
> I can work around this easily, but I wanted to make sure others aware,
> and validate that we want to keep this as the default.  If so, I'll
> document it on the building OpenNMS page.
> 
> Below is the original commit.
> 
> 
> ----- Original message -----
> From: "Benjamin Reed" <rangerr...@users.sourceforge.net>
> To: opennms-...@lists.sourceforge.net
> Date: Fri, 11 Mar 2011 00:31:28 +0000
> Subject: [opennms-cvs] [SCM] OpenNMS branch, master,    updated.
> opennms-1.9.6-1-155-g1268bd7
> 
> This is an automated email from the git hooks/post-receive script. It
> was
> generated because a ref change was pushed to the repository containing
> the project "OpenNMS".
> 
> The branch, master has been updated
>        via  1268bd7c9cec25008b3f8604bbe3566e6e941dbf (commit)
>       from  1c348604706538816830a7fb7863addcab9db446 (commit)
> 
> Those revisions listed above that are new to this repository have
> not appeared on any other notification email; so we list those
> revisions in full, below.
> 
> - Log -----------------------------------------------------------------
> commit 1268bd7c9cec25008b3f8604bbe3566e6e941dbf
> Author: Benjamin Reed <ran...@opennms.org>
> Date:   Thu Mar 10 19:31:01 2011 -0500
> 
>     increase the reserved code cache size
> 
> -----------------------------------------------------------------------
> 
> Summary of changes:
>  functions.pl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> 
> hooks/post-receive

I've been fighting similar issues on my old MacBook at home (with only 1
GB of memory and version 10.4.11) as well as my MacBook Pro at work. And
what works for the 1.8 branch doesn't work for master...very
frustrating. Any clarification you could add to the wiki would be much
appreciated.

--Bill--


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to