From a29c1b0881b4c8c28a6c0ca6fecb14116d991109 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 3 Dec 2021 18:41:59 +0300 Subject: [PATCH] tests: Limit dogtag memory usage --- .github/workflows/scripts/run-tests.sh | 5 +++++ ipatests/azure/scripts/azure-run-tests.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/scripts/run-tests.sh b/.github/workflows/scripts/run-tests.sh index d0238d81cb5..0f992c6b8ee 100755 --- a/.github/workflows/scripts/run-tests.sh +++ b/.github/workflows/scripts/run-tests.sh @@ -164,6 +164,11 @@ python3 setup_containers.py || \ exit 1; } +compose_execute $SHELL_CMD \ + -c 'java -XX:+PrintFlagsFinal -version | grep -i HeapSize' +compose_execute $SHELL_CMD \ + -c 'echo -e JAVA_OPTS=\"-Dcom.redhat.fips=false -Xmx64M\"\\nexport JAVA_OPTS >> /etc/pki/pki.conf ||:' + # collect list of all the installed packages mkdir -p "$IPA_INSTALLED_PKGS_DIR" diff --git a/ipatests/azure/scripts/azure-run-tests.sh b/ipatests/azure/scripts/azure-run-tests.sh index 56817fd1cc7..23dc5bb8604 100755 --- a/ipatests/azure/scripts/azure-run-tests.sh +++ b/ipatests/azure/scripts/azure-run-tests.sh @@ -183,6 +183,11 @@ python3 setup_containers.py || \ exit 1; } +compose_execute $BASH_CMD \ + -c 'java -XX:+PrintFlagsFinal -version | grep -i HeapSize' +compose_execute $BASH_CMD \ + -c 'echo -e JAVA_OPTS=\"-Dcom.redhat.fips=false -Xmx64M\"\\nexport JAVA_OPTS >> /etc/pki/pki.conf ||:' + # collect list of all the installed packages mkdir -p "$IPA_INSTALLED_PKGS_DIR"