Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » OutOfMemoryError
OutOfMemoryError [message #595061] Mon, 16 October 2006 06:00
No real name is currently offline No real name
Messages: 121
Registered: July 2009
Senior Member
Hi,
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
ABORT

Exception thrown from AspectJ 1.5.2a

This might be logged as a bug already -- find current bugs at

http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ& ;component=Compiler

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

If you don't find the exception below in a bug, please add a new bug
at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
To make the bug a priority, please include a test program
that can reproduce this exception.

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


Current Time: Thu Aug 21 16:09:57 EDT 2014

Powered by FUDForum. Page generated in 0.01474 seconds