From 48aebdac48f2c113c80a747e90ef3241ab4c467e Mon Sep 17 00:00:00 2001 From: Dmitry Konstantinov Date: Thu, 21 May 2026 13:32:27 +0100 Subject: [PATCH] Increase Xmx to 2Gb for Ant executed by check-code.sh to avoid OOM patch by Dmitry Konstantinov; reviewed by Michael Semb Wever for CASSANDRA-21391 --- .build/check-code.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/check-code.sh b/.build/check-code.sh index 4fb909a1a8..4a540a653d 100755 --- a/.build/check-code.sh +++ b/.build/check-code.sh @@ -24,5 +24,5 @@ command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1 [ -f "${CASSANDRA_DIR}/build.xml" ] || { echo >&2 "${CASSANDRA_DIR}/build.xml must exist"; exit 1; } # execute. memory needs to fit within the specified container size, see .jenkins/Jenkinsfile -ANT_OPTS="-Xmx1g -XX:+PrintClassHistogram -XX:OnOutOfMemoryError='kill -QUIT %p'" ant -f "${CASSANDRA_DIR}/build.xml" check # dependency-check # FIXME dependency-check now requires NVD key downloaded first +ANT_OPTS="-Xmx2g -XX:+PrintClassHistogram -XX:OnOutOfMemoryError='kill -QUIT %p'" ant -f "${CASSANDRA_DIR}/build.xml" check # dependency-check # FIXME dependency-check now requires NVD key downloaded first exit $?