Summary: | AspectJ compiler runs out of memory when compiling 846 aspects with 1024m allocated heap size | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | John Ky <newhoggy> |
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | aclement |
Version: | 1.6.6 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
John Ky
2010-02-11 02:11:13 EST
I'm not sure JAVA_OPTS is respected. Can you open ajc.bat - you will see a hardcoded Xmx of 64M - can you try directly increasing that and compiling again? Also please use AspectJ 1.6.8 as it has a different memory profile to 1.6.6 Also happens in 1.6.8. As I was running on Linux, ajc.bat wouldn't work. When I tried changing JAVA_OPTS to 2024m, it worked. But that's an awful lot of memory to be using for a compile. It is a lot of memory yes, but 846 aspects is also a lot of aspects :) (In reply to comment #3) > It is a lot of memory yes, but 846 aspects is also a lot of aspects :) Yes it is a lot of aspects. I was auto generating aspects to insert new methods into autogenerated classes from another 3rd party tool. Nothing fancy. It's still about 2MB per aspect, which seems awfully expensive to me. |