Re: [abc-users] java.lang.OutOfMemoryError when building abc extensions

From: Mohamed ElBendary <mohamed.elbendary_at_gmail.com>
Date: Wed, 23 Apr 2008 09:04:02 -0500

Hi Eric,
Many Thanks for the tip. After some digging, it turns out that this can be
done within the IDE as follows:
Select Run as ... > ant build ... > JRE tab then enter arguments to the JVM
in the VM textbox, just in case someone else runs into the same problem.

Mohamed

On Tue, Apr 22, 2008 at 11:54 AM, Eric Bodden <eric.bodden_at_mail.mcgill.ca>
wrote:

> Hi Mohamed.
>
> Line 79 calls a "jastadd" task which, to my best knowledge, does not
> have any memoryMaximumSize parameter. I think the only way out then is
> to give Ant itself more memory. I think you can set the env var
> ANT_OPTS to e.g. -Xmx256M and then Ant should pick this up when being
> called from the command line.
>
> Eric
>
> 2008/4/22 Mohamed ElBendary <mohamed.elbendary_at_gmail.com>:
> > Hello abc users,
> >
> > I'm trying to build abc extensions using Eclipse 3.3 under Windows XP.
> > Please find build output below. Upon the OutOfMemoryError I increased
> the
> > "memoryMaximumSize" attribute in abc-ja-exts/build.xml to "1024M" but
> still
> > I'm getting the same error at exactly the same spot. Help with this is
> > greatly appreciated.
> >
> >
> > Buildfile: C:\Documents and
> > Settings\admin\workspace\abc-1.3.0\abc-ja-exts\build.xml
> > tm-parser:
> > [java] Parser specification JavaParser.beaver need not be
> regenerated
> > eaj-parser:
> > [java] Parser specification JavaParser.beaver need not be
> regenerated
> > tm-jrag:
> > [echo] Generating to C:\Documents and
> > Settings\admin\workspace\abc-1.3.0\abc-ja-exts/generated...
> > [jastadd] generating node types and weaving aspects
> >
> > BUILD FAILED
> > C:\Documents and
> > Settings\admin\workspace\abc-1.3.0\abc-ja-exts\build.xml:79:
> > java.lang.OutOfMemoryError: Java heap space
> >
> > Total time: 19 seconds
> >
> > Mohamed
> >
> > --
> > ________________________________
> > Mohamed ElBendary
> > PhD. Candidate
> > Computer Science Department
> > University of Wisconsin-Milwaukee
> > ________________________________
>
>
>
> --
> Eric Bodden
> Sable Research Group
> McGill University, Montréal, Canada
>
>
Received on Wed Apr 23 2008 - 15:04:06 BST

This archive was generated by hypermail 2.2.0 : Wed Apr 23 2008 - 22:20:12 BST