On Wednesday, September 01, 2010 03:39:07 pm Denny wrote:
Dear all,
during for some of my x64 builds for package scala I encounter some "failed" results from the build process with an error message saying "out of memory" during build process.
how can I expand the available memory for java/javac for building this package in obs? What would be the approach - patching the build script or set it in spec file (i would prefer the later)
The problem is not in JVM memory settings. The OOM killer is started when there's no available memory and it kills a process consuming the most of it. And you cannot expand the available memory, that's not possible. What you can do is ensure there's a lot of memory before start of build. See check-build.sh [1] from java-1_6_0-openjdk. This script checks if there are at least 2GB of virtual memory. [1] https://build.opensuse.org/package/view_file?file=check- build.sh&package=java-1_6_0- openjdk&project=Java%3Aopenjdk6%3AFactory&srcmd5=546cff7a1e52e5255f4764c2231a2756 Regards Michal Vyskocil
thank you for your help.
-Denny