Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » OutOfMemoryError
OutOfMemoryError [message #595061] Mon, 16 October 2006 10:00
No real name is currently offline No real nameFriend
Messages: 121
Registered: July 2009
Senior Member
I am trying to weave an aspect into a large .jar file (52 MB), to which
I do not have the source, but am running into OutOfMemoryError.

As target aspectj runtime version, which I can not influence, is 1.2.2.,
I installed Eclipse 3.0.2 and perform an online update of 1.2.2. Shortly
after compiling, the CPU consumption is 100% and the virtual memory gets
as high as 1.9 GB before Eclipse crashes. I played around with -vmargs,
but expanding heap only defers the seemingly inevitable OutOfMemoryError.

I also tried using ajc from the command line with AspectJ 1.5.2a. But
it, too, reports the same (output provided further on).

Java environment is IBM 1.4.2.

Is my jar file just too big? Any suggestions?

Thanks, chris

Output from command-line ajc:

JVMST109: Insufficient space in Javaheap to satisfy allocation request

Exception thrown from AspectJ 1.5.2a

This might be logged as a bug already -- find current bugs at ;component=Compiler

Bugs for exceptions thrown have titles File:line from the top stack,
e.g., ""

If you don't find the exception below in a bug, please add a new bug
To make the bug a priority, please include a test program
that can reproduce this exception.

when batch building BuildConfig[null] #Files=1
org.aspectj.util.FileUtil.readAsByteArray( iled Code))
org.aspectj.weaver.bcel.BcelWeaver.addJarFile(BcelWeaver.jav a(Compiled
org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBc elWorld(
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchB uild(
at org.aspectj.ajdt.ajc.AjdtCommand.doCommand( 112)
at org.aspectj.ajdt.ajc.AjdtCommand.runCommand( :60)
Previous Topic:Aspects that affect all or large number of classes
Next Topic:OutOfMemoryError
Goto Forum:

Current Time: Sat Nov 28 06:12:43 GMT 2015

Powered by FUDForum. Page generated in 0.03516 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software