From ccac00001287b9bca11813bb262afc7702c7dce2 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 31 Jul 2013 15:12:19 +0200 Subject: Increase stack size for Web UI builder Web UI build fails on some architectures or configuration due to StackOverflow. This patch increases the stack size to solve it. 512k is usually enough but we encountered fail on ppc64 even with 2m, therefore the 8m. The build is single threaded so it shouldn't waste much memory. --- install/ui/util/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'install/ui/util/build.sh') diff --git a/install/ui/util/build.sh b/install/ui/util/build.sh index 7cd62348..03776c1f 100755 --- a/install/ui/util/build.sh +++ b/install/ui/util/build.sh @@ -31,5 +31,6 @@ if [[ ! $profile ]] ; then exit 1 fi -rhino $DIR/build/build.js baseUrl=$DIR/build load=build profile=$DIR/../src/$profile.profile.js -exit $? \ No newline at end of file +RHINO="java -Xss${JAVA_STACK_SIZE:-512k} -classpath /usr/share/java/rhino.jar org.mozilla.javascript.tools.shell.Main" +$RHINO $DIR/build/build.js baseUrl=$DIR/build load=build profile=$DIR/../src/$profile.profile.js +exit $? -- cgit