Skip to content

Commit 20d3224

Browse files
viiryadongjoon-hyun
authored andcommitted
[SPARK-35358][BUILD] Increase maximum Java heap used for release build to avoid OOM
### What changes were proposed in this pull request? This patch proposes to increase the maximum heap memory setting for release build. ### Why are the changes needed? When I was cutting RCs for 2.4.8, I frequently encountered OOM during building using mvn. It happens many times until I increased the heap memory setting. I am not sure if other release managers encounter the same issue. So I propose to increase the heap memory setting and see if it looks good for others. ### Does this PR introduce _any_ user-facing change? No, dev only. ### How was this patch tested? Manually used it during cutting RCs of 2.4.8. Closes apache#32487 from viirya/release-mvn-oom. Authored-by: Liang-Chi Hsieh <viirya@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 245dce1 commit 20d3224

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/create-release/release-build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ git clean -d -f -x
162162
rm -f .gitignore
163163
cd ..
164164

165+
export MAVEN_OPTS="-Xmx12g"
166+
165167
if [[ "$1" == "package" ]]; then
166168
# Source and binary tarballs
167169
echo "Packaging release source tarballs"

0 commit comments

Comments
 (0)