Increase thread stack size for Graal in apex-pdp 51/102851/1
authorliamfallon <liam.fallon@est.tech>
Tue, 3 Mar 2020 12:20:00 +0000 (12:20 +0000)
committerliamfallon <liam.fallon@est.tech>
Tue, 3 Mar 2020 12:20:08 +0000 (12:20 +0000)
In the apex-pdp javascript tasks are executed using Graal scripting
support in Java 11. The javascript scripts executed in Java threads. The
default stack size of 1024k is too small and results in stack overflow
exceptions for any Javascript script that is of a reasonable size.

This review increases the stack size for the JVM for apex-pdp builds.

Issue-ID: POLICY-2106
Change-Id: Iea7512939dcd8c1d68d8c37ebd4af63b89ffaa61
Signed-off-by: liamfallon <liam.fallon@est.tech>
jjb/policy/policy-apex-pdp.yaml

index 1923c76..da2407d 100644 (file)
@@ -14,6 +14,7 @@
          docker-pom: 'pom.xml'
          mvn-profile: 'docker'
          mvn-params: "-P docker"
+         java-opts: 'Xss2048k'
       - gerrit-maven-stage:
           sign-artifacts: true
           build-node: centos7-builder-4c-4g