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 haven't had the time to implement it). Your step (3) is binary weaving. What you could try is that instead of passing the already compiled binaries in, pass the sources in again at step (3) - it is perhaps counter-intuitive, but this will allow the better compilation strategy to kick in. Having said that, we can successfully weave jars like the JVM system jars (rt.jar/classes.jar) without running out of heap so I'm not quite sure what you are doing that is using it all up. If generating the aspects you could try generating less into them and see if you can work out the construct that blows it up. Andy On 22 January 2013 13:30, aryenneb <aryen...@hotmail.com> wrote: > 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 (Let's call it test.java) using ajc. > This run generates some java files and aspectj files (Let's call > them > b.java, c.java, Driver.java, b.aj, c.aj) > 3. Then compile Driver.java using ajc. > This requires the source that has already been compiled, plus the set > of generated .java and .aj files. > 4. The next step should be to run driver but I cannot get to that point > since it runs out of memory during the compilation. > > Hope this makes it a bit clearer. > Thanks > Aryenne > > > > -- > View this message in context: > http://aspectj.2085585.n4.nabble.com/Memory-problem-when-using-aspectj-tp4650733p4650742.html > Sent from the AspectJ - users mailing list archive at Nabble.com. > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users >
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users