[Improve](be)check max open file #18888
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user