Skip to content

Commit ce8922d

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 #32487 from viirya/release-mvn-oom. Authored-by: Liang-Chi Hsieh <viirya@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 20d3224) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 9623ccb) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 190c57b commit ce8922d

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
@@ -167,6 +167,8 @@ git clean -d -f -x
167167
rm -f .gitignore
168168
cd ..
169169

170+
export MAVEN_OPTS="-Xmx12g"
171+
170172
if [[ "$1" == "package" ]]; then
171173
# Source and binary tarballs
172174
echo "Packaging release source tarballs"

0 commit comments

Comments
 (0)