This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 4e398a30f5f458ef1500ef19e34006fc266933c1
Author: zhangdong <493738...@qq.com>
AuthorDate: Sat Apr 22 08:42:43 2023 +0800

    [Improve](be)check max open file #18888
---
 bin/start_be.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bin/start_be.sh b/bin/start_be.sh
index dcacbb7af3..4124f22985 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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to