Bug 36234 - out of memory error when compiling
Summary: out of memory error when compiling
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 1.2   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-08 14:04 EDT by Christian Seifert CLA
Modified: 2004-03-19 09:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Seifert CLA 2003-04-08 14:04:10 EDT
Getting an out of memory error when compiling with Ajc 1.1 RC1. 
I know this is not very descriptive, but maybe you can point me into a 
direction of getting more output.

here some additional information though:
Code base is medium size (about 1500 classfiles)
I removed all my aspects and still receive the error.
Running it from the command line: ajc -classpath whateveritis -sourceroots 
whateveritis -d whateveritis
Comment 1 Jim Hugunin CLA 2003-04-08 16:31:50 EDT
I believe this is a duplicate bug that says we need to handle OutOfMemory in a 
friendlier way.  Hopefully you can resolve this by following the instructions 
in the FAQ:
http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-
home/doc/faq.html#q:ajcoom


*** This bug has been marked as a duplicate of 35636 ***
Comment 2 Jack Kenefick CLA 2003-11-17 10:00:55 EST
Occurs on fresh install of winXP with one simple aspect

package com.x.y;
public aspect CurrTableUpdateAspect
{
     pointcut printouts();

     before(): printouts() {
       System.out.println("*** Entering printMessage ***");
     }
     after():  printouts() {
       System.out.println("*** Exiting printMessage ***");
     }
}

There are 687 java files in the default.lst.
Comment 3 Adrian Colyer CLA 2004-01-15 06:48:35 EST
I've made a small update to the compiler to handle OutOfMemoryError in a much
more graceful way.

An ajc compile running out of memory will now produce the following message and 
then exit:

AspectJ <version> 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
Comment 4 Adrian Colyer CLA 2004-03-19 09:50:10 EST
updating target flag to indicate inclusion in 1.2 release.