HBASE-24642 (addendum): Reduce make concurrency and increase container mem limit
Signed-off-by: Josh Elser <elserj@apache.org>
diff --git a/bin/hbase-native-client-personality.sh b/bin/hbase-native-client-personality.sh
index af6ee3f..b3bcf33 100755
--- a/bin/hbase-native-client-personality.sh
+++ b/bin/hbase-native-client-personality.sh
@@ -73,7 +73,9 @@
# Passed to cmake command using a custom personality.
CMAKE_ARGS="-DDOWNLOAD_DEPENDENCIES=ON"
# Passed to make compilation command.
- MAKE_COMPILE_ARGS="-j$(nproc)"
+ # Concurrency was determined after some trial and error. Higher
+ # values resulted in memory limit issues and compiler crashes.
+ MAKE_COMPILE_ARGS="-j4"
# shellcheck disable=SC2034
# Expected by Yetus for compiling non-jvm projects.
JVM_REQUIRED=false
@@ -91,7 +93,10 @@
PROCLIMIT=10000
# Override if you want to bump up the memlimit for docker.
# shellcheck disable=SC2034
- DOCKERMEMLIMIT=4g
+ DOCKERMEMLIMIT=16g
+ # shellcheck disable=SC2034
+ # Logs the ctest output when a test fails.
+ CTEST_OUTPUT_ON_FAILURE=1
}
## @description Queue up modules for this personality