Skip to content

Commit

Permalink
[Improve](be)check max open file #18888
Browse files Browse the repository at this point in the history
  • Loading branch information
zddr authored Apr 22, 2023
1 parent a49311b commit 04d18ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/start_be.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04d18ee

Please sign in to comment.