[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] odd OutOfMemory error when weaving


Hi,

I'm not necessarily sure this is an AspectJ problem, but we seem to periodically an OutOfMemory error in our build when weaving (always while weaving). However it doesnt' always happen - more often than not it's fine, but it's making us nervous... It's different than the (very reprodicible) perm size message we thought we worked past. The good bit (at the bottom of the full trace) is:
  java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?

The machine the build is running on has 8 GB of RAM, so hard to see that it really couldn't allocat a measly 32756 byte.

Anyone seen this style of message before? (either in the context of AspectJ weaving or elsewhere?) 


Full exception message:
 [iajc] abort ABORT -- (OutOfMemoryError) null
     [iajc] null
     [iajc] java.lang.OutOfMemoryError
     [iajc] 	at java.util.zip.ZipFile.open(Native Method)
     [iajc] 	at java.util.zip.ZipFile.(ZipFile.java:203)
     [iajc] 	at java.util.zip.ZipFile.(ZipFile.java:234)
     [iajc] 	at org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJar.initialize(ClasspathJar.java:92)
     [iajc] 	at org.aspectj.org.eclipse.jdt.internal.compiler.batch.FileSystem.(FileSystem.java:71)
     [iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.getLibraryAccess(AjBuildManager.java:804)
     [iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:868)
     [iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:244)
     [iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:163)
     [iajc] 	at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
     [iajc] 	at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
     [iajc] 	at org.aspectj.tools.ajc.Main.run(Main.java:367)
     [iajc] 	at org.aspectj.tools.ajc.Main.runMain(Main.java:246)
     [iajc] 	at org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTask.java:1282)
     [iajc] 	at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java:1080)
     [iajc] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:364)
     [iajc] 	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
     [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:364)
     [iajc] 	at net.sf.antcontrib.logic.TryCatchTask.execute(TryCatchTask.java:183)
     [iajc] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:364)
     [iajc] 	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
     [iajc] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:364)
     [iajc] 	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:377)
     [iajc] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:364)
     [iajc] 	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
     [iajc] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:364)
     [iajc] 	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:377)
     [iajc] 	at net.sf.antcontrib.logic.ForDelegate.doSequentialIteration(ForDelegate.java:213)
     [iajc] 	at net.sf.antcontrib.logic.ForDelegate.doTheTasks(ForDelegate.java:244)
     [iajc] 	at net.sf.antcontrib.logic.ForDelegate.execute(ForDelegate.java:198)
     [iajc] 	at net.sf.antcontrib.logic.For.execute(For.java:153)
     [iajc] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:364)
     [iajc] 	at org.apache.tools.ant.Target.execute(Target.java:341)
     [iajc] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [iajc] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
     [iajc] 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
     [iajc] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:364)
     [iajc] 	at org.apache.tools.ant.Target.execute(Target.java:341)
     [iajc] 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [iajc] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
     [iajc] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
     [iajc] 	at org.apache.tools.ant.Main.runBuild(Main.java:673)
     [iajc] 	at org.apache.tools.ant.Main.startAnt(Main.java:188)
     [iajc] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
     [iajc] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 [trycatch] Caught exception: fail due to OutOfMemoryError"ABORT" (1 exceptions)
   [delete] Deleting: /software/src/ems/assemble/sms/sonusLib/smsSessionCompositeTgEJBClient.jar.orig

BUILD FAILED
/software/src/ems/src/build.xml:214: The following error occurred while executing this line:
/software/src/ems/src/commonTasks.xml:65: The following error occurred while executing this line:
/software/src/ems/src/commonTasks.xml:91: The following error occurred while executing this line:
/software/src/ems/src/commonTasks.xml:127: Failing build - couldn't weave jar /software/src/ems/assemble/sms/sonusLib/smsSessionCompositeTgEJBClient.jar

Total time: 9 minutes 8 seconds

Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?
make[1]: *** [weave] Error 1