Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » 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
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: Fri Apr 26 21:03:13 GMT 2024

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

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

Back to the top