diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml index 3354ab88a395e..28737bdefc60a 100644 --- a/.github/workflows/publish_snapshot.yml +++ b/.github/workflows/publish_snapshot.yml @@ -70,6 +70,7 @@ jobs: GPG_KEY: "not_used" GPG_PASSPHRASE: "not_used" GIT_REF: ${{ matrix.branch }} + MAVEN_MXM_OPT: 2g run: | while true do diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh index f3571c4e48cf9..69494dc5107c5 100755 --- a/dev/create-release/release-build.sh +++ b/dev/create-release/release-build.sh @@ -227,7 +227,7 @@ git clean -d -f -x rm -f .gitignore cd .. -export MAVEN_OPTS="-Xss128m -Xmx12g -XX:ReservedCodeCacheSize=1g" +export MAVEN_OPTS="-Xss128m -Xmx${MAVEN_MXM_OPT:-12g} -XX:ReservedCodeCacheSize=1g" if [[ "$1" == "package" ]]; then # Source and binary tarballs