From 2310ecee2b6a50d400ef5500585d5991c5b443e1 Mon Sep 17 00:00:00 2001 From: zhangdong <493738387@qq.com> Date: Fri, 21 Apr 2023 13:39:47 +0800 Subject: [PATCH] check max open file --- bin/start_be.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/start_be.sh b/bin/start_be.sh index f6e564149c9efd..2c949a6b9ff506 100755 --- a/bin/start_be.sh +++ b/bin/start_be.sh @@ -71,6 +71,12 @@ if [[ "$(uname -s)" != 'Darwin' ]]; then fi fi +MAX_FILE_COUNT="$(ulimit -n)" +if [[ "${MAX_FILE_COUNT}" -lt 65536 ]]; then + echo "Please set the maximum number of open file descriptors to be 65536 using 'ulimit -n 65536'." + exit 1 +fi + # add java libs for f in "${DORIS_HOME}/lib"/*.jar; do if [[ -z "${DORIS_CLASSPATH}" ]]; then