Mantis - Resin
Viewing Issue Advanced Details
1986 major always 09-01-07 02:49 09-04-07 08:56
chris_se  
ferg  
normal  
closed 3.1.2  
fixed  
none    
none 3.1.3  
0001986: java.lang.OutOfMemoryError while compiling Resin on a 64 bit machine
I'm using Gentoo as a Linux distribution an when I try to install Resin 3.1.2 on a 64 bit machine, the compilation fails with the following error message:

    [javac] Compiling 3312 source files to /var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/modules/resin/classes
    [javac] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    [javac] at com.sun.tools.javac.main.Main.resourceMessage(Main.java:649)
    [javac] at com.sun.tools.javac.main.Main.compile(Main.java:601)
    [javac] at com.sun.tools.javac.main.Main.compile(Main.java:544)
    [javac] at com.sun.tools.javac.Main.compile(Main.java:67)
    [javac] at com.sun.tools.javac.Main.main(Main.java:52)

On a 32 bit machine this somehow doesn't happen.

On both machines, I'm using a Sun JDK 1.5.0_12.

Since Gentoo does not change the Java source files, this isn't a Gentoo-specific problem.

To solve the problem, I exchanged the entry

   <property name="javac.memoryMaximumSize" value="256m"/>

in the build.xml with

   <property name="javac.memoryMaximumSize" value="512m"/>

If I do that, Resin compiles and works fine.

There are no notes attached to this issue.