Re: [aspectj-users] Memory problem when using aspectj

2013-01-24 Thread aryenneb
Hi Andy, Thank you very much for your help. Your last suggestion was the key that I needed. All is well now, that I am not using the binary weaving. Also the generated aspects were very large. I reduced the size and created more aspects instead and it works like magic. Thanks a bunch. Aryenne

Re: [aspectj-users] Memory problem when using aspectj

2013-01-22 Thread Andy Clement
Hi, ok. Out of interest, are your generated aspects big (lots of advice, lots of ITDs)? AspectJ actually uses a different compile strategy (to use less memory) when doing full source compilation, which it does not use when binary weaving (it should do the same thing for binary weaving but I have

Re: [aspectj-users] Memory problem when using aspectj

2013-01-22 Thread aryenneb
Hi Andy, Sorry, I should have said that the memory parameter changes were made to ajc.bat. Thanks for the correction. Ok, my project is an Aspectj project being run in Eclipse Juno(with Java 1.7, aspectj 1.7.1). 1. First I build the source using an ant build 2. Then I run my main java file

Re: [aspectj-users] Memory problem when using aspectj

2013-01-22 Thread Andy Clement
Hi, > I changed the Xmx in the C:\aspectj1.7\bin\ajc.txt I presume you mean ajc.bat ? When you say: > 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: So ev

Re: [aspectj-users] Memory problem when using aspectj

2013-01-22 Thread aryenneb
Hi, I changed the Xmx in the C:\aspectj1.7\bin\ajc.txt I changed line 10 in that file from: "$JAVA_HOME/bin/java" -classpath "$ASPECTJ_HOME/lib/aspectjtools.jar;$JAVA_HOME/lib/tools.jar;$CLASSPATH" *-Xmx64M *org.aspectj.tools.ajc.Main "$@" to: "$JAVA_HOME/bin/java" -classpath "$ASPECTJ_HOME/lib

Re: [aspectj-users] Memory problem when using aspectj

2013-01-21 Thread jeanlouis.pasturel
:04 À : aspectj-users@eclipse.org Objet : Re: [aspectj-users] Memory problem when using aspectj Hi, Thanks Brett, for your suggestion. I tried that but still get the same error. -- View this message in context: http://aspectj.2085585.n4.nabble.com/Memory-problem-when-using-aspectj-tp465 0733p46

Re: [aspectj-users] Memory problem when using aspectj

2013-01-21 Thread aryenneb
Hi, Thanks Brett, for your suggestion. I tried that but still get the same error. -- View this message in context: http://aspectj.2085585.n4.nabble.com/Memory-problem-when-using-aspectj-tp4650733p4650735.html Sent from the AspectJ - users mailing list archive at Nabble.com. ___

Re: [aspectj-users] Memory problem when using aspectj

2013-01-21 Thread Brett Randall
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 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

[aspectj-users] Memory problem when using aspectj

2013-01-21 Thread Aryenne Bradshaw
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): [err