[Enhancement] check vm.max_map_count before starting (#11052)

When vectorized engine is enabled, doris uses much more vmas than before,
and it leads to core dump due to memory allocation failure.
This commit is contained in:
Yongqiang YANG
2022-07-21 21:16:48 +08:00
committed by GitHub
parent 7147a7c290
commit 08ebef2992

View File

@ -58,6 +58,12 @@ export DORIS_HOME=$(
pwd
)
MAX_MAP_COUNT=`sysctl -n vm.max_map_count`
if [ $MAX_MAP_COUNT -lt 2000000 ]; then
echo "Please set vm.max_map_count to be 2000000. sysctl -w vm.max_map_count=2000000"
exit 1
fi
# add libs to CLASSPATH
for f in $DORIS_HOME/lib/*.jar; do
if [ ! -n "${DORIS_JNI_CLASSPATH_PARAMETER}" ]; then