Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194860 - www-servers/resin-3.1.2 fails to compile due to Java running out of memory
Summary: www-servers/resin-3.1.2 fails to compile due to Java running out of memory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-05 23:03 UTC by Maurice Volaski
Modified: 2007-10-08 12:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
modified ebuild to used revision related patch (resin-3.1.2-r1.ebuild,3.52 KB, text/plain)
2007-10-07 12:53 UTC, Pierre Colot
Details
Patch 3.1.2 with max java memory set to 384M (resin-3.1.2-r1-gentoo.patch,65.15 KB, patch)
2007-10-07 12:56 UTC, Pierre Colot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice Volaski 2007-10-05 23:03:20 UTC
Here's the error output on a compiling resin 3.1.2 on a 64-bit system,

[mkdir] Created dir: /var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/modules/resin/classes
     [copy] Copying 99 files to /var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/modules/resin/classes
    [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 java.util.HashMap.values(HashMap.java:950)
    [javac]     at com.sun.tools.javac.jvm.ClassReader.close(ClassReader.java:1470)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.close(JavaCompiler.java:578)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:618)
    [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)

BUILD FAILED
/var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/build.xml:203: The following error occurred while executing this line:
/var/tmp/portage/www-servers/resin-3.1.2/work/resin-3.1.2/build.xml:262: Compile failed; see the compiler error output for details.


This bug looks like it's the same as http://bugs.gentoo.org/show_bug.cgi?id=184818. The build.xml in 3.1.2 also says 256m, so it looks like this bug was not fixed.
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-10-06 09:19:25 UTC
bug 184818 was due to low memory in Xen guest. Please try recompiling with 256m changed to 384m and if that fails also try using 512m. Please report back with results.
Comment 2 Pierre Colot 2007-10-07 12:53:34 UTC
Created attachment 132817 [details]
modified ebuild to used revision related patch

The patch is the next attachment
Comment 3 Pierre Colot 2007-10-07 12:56:00 UTC
Created attachment 132820 [details, diff]
Patch 3.1.2 with max java memory set to 384M

/usr/portage/www-servers/resin/files/3.1.2/resin-3.1.2-r1-gentoo.patch with max java memory set to 384M
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-10-07 13:07:04 UTC
Pierre: I'll fix this using simple sed, so no patch is needed. I'm also waiting on Maurice to confirm that raising from 256 to 384 megs fixes this.

Also please attach patches, not complete ebuilds - it makes reviewing the changes a lot easier.
Comment 5 Pierre Colot 2007-10-07 13:13:48 UTC
Modified build.xml to set Max java memory to 384M.

With this configuration, the ebuild succeed. 
I didn't test resin by itself.

Comment 6 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-10-07 17:44:39 UTC
Might want to also try forcing ecj instead of javac. I decided to do that with Tomcat on amd64 vs upping the memory. Just another way to go that's a bit greener :) Not that I am a big fan of ecj or etc, but it gets the same job done with less resources at times.
Comment 7 Maurice Volaski 2007-10-08 07:38:22 UTC
I just tried the patch and it compiles and installs fine.
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-10-08 12:41:31 UTC
Fixed, please sync in about 30 minutes and emerge resin again.