Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Memory problem when using aspectj

Might be worth a quick test with increased perm gen space, in case you
are running out:

-XX:MaxPermSize=512m

Best
Brett

On 22 January 2013 10:25, Aryenne Bradshaw <aryenneb@xxxxxxxxxxx> wrote:
> Hi Users,
> This is my first time to the forum.  I am really desperate for some help.  I
> have a project running on Java 1.7 and ajc 1.7.1 on a windows 7 machine 64
> bit.
> Everything compiles correctly.  However, when I try to run the project this
> is the error message (and there is no error log):
>
> [error] AspectJ 1.7.1 ran out of memory during compilation:
>
> Please increase the memory available to ajc by editing the ajc script
>
> found in your AspectJ installation directory. The -Xmx parameter value
>
> should be increased from 64M (default) to 128M or even 256M.
>
> See the AspectJ FAQ available from the documentation link
>
> on the AspectJ home page at http://www.eclipse.org/aspectj
> SUGGESTED SOLUTIONS ALREADY TRIED:
> 1.  i  have increased the value of the ajc Xmx parameter from 64M to 1024M
> (and even 4096M)
> 2. I have set -Xset:minimalModel=true  -Xset:typeDemotion=true
>
> The problem exits even if I run the project in eclipse or on the command
> prompt I get the same error.  The project runs with small test files but if
> I try to use larger test files I get the error above.  Any help will be
> greatly appreciated.  I am now at my witts end.
> Thank you.
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top