Skip to content

Commit

Permalink
Merge pull request #5699 from rabbitmq/mergify/bp/v3.10.x/pr-5698
Browse files Browse the repository at this point in the history
Set ERL_MAX_ETS_TABLES and ERL_MAX_PORTS in the same manner as on Win… (backport #5684) (backport #5698)
  • Loading branch information
michaelklishin authored Aug 31, 2022
2 parents 21e7268 + fa687d1 commit 221b7cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
17 changes: 14 additions & 3 deletions deps/rabbit/scripts/rabbitmq-env
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,21 @@ ESCRIPT_DIR="${RABBITMQ_HOME}/escript"
saved_RABBITMQ_PID_FILE="$RABBITMQ_PID_FILE"

## Get configuration variables from the configure environment file
[ "x" = "x$RABBITMQ_CONF_ENV_FILE" ] && RABBITMQ_CONF_ENV_FILE=${CONF_ENV_FILE}
if [ -f "${RABBITMQ_CONF_ENV_FILE}" ]; then
[ "x" = "x$RABBITMQ_CONF_ENV_FILE" ] && RABBITMQ_CONF_ENV_FILE="$CONF_ENV_FILE"
if [ -f "$RABBITMQ_CONF_ENV_FILE" ]; then
CONF_ENV_FILE_PHASE=rabbitmq-env
. ${RABBITMQ_CONF_ENV_FILE} || true
. "$RABBITMQ_CONF_ENV_FILE" || true
fi

# Bump ETS table limit to 50000
if [ -z "$ERL_MAX_ETS_TABLES" ]; then
export ERL_MAX_ETS_TABLES=50000
fi

# Default is defined here:
# https://github.com/erlang/otp/blob/master/erts/emulator/beam/erl_port.h
if [ -z "$ERL_MAX_PORTS" ]; then
export ERL_MAX_PORTS=65536
fi

[ -n "$ERL_EPMD_PORT" ] && export ERL_EPMD_PORT
Expand Down
5 changes: 0 additions & 5 deletions deps/rabbit/scripts/rabbitmq-server
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ SCRIPTS_DIR=$(dirname "$0")

RABBITMQ_DEFAULT_ALLOC_ARGS="+MBas ageffcbf +MHas ageffcbf +MBlmbcs 512 +MHlmbcs 512 +MMmcs 30"

# Bump ETS table limit to 50000
if [ "x" = "x$ERL_MAX_ETS_TABLES" ]; then
ERL_MAX_ETS_TABLES=50000
fi

check_start_params() {
check_not_empty RABBITMQ_BOOT_MODULE
check_not_empty SASL_BOOT_FILE
Expand Down

0 comments on commit 221b7cc

Please sign in to comment.