build failed due to out of memory - javac
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) thank you for your help. -Denny -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-java+help@opensuse.org
Do you use an ANT build file? If yes, you can control javac parameters, for example: <javac ..... fork="true" memoryInitialSize="128m" memoryMaximumSize="512m"> On Wed, Sep 1, 2010 at 3:39 PM, Denny <opensuse@dennybeyer.de> 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)
thank you for your help.
-Denny -- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-java+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-java+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-java+help@opensuse.org
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
participants (3)
-
Denny
-
Michal Vyskocil
-
Roberto Mannai