Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default NodeJS max heap limit to 250MB. Override by setting NODE_OPTIONS #5451

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/kibana
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ if [ ! -x "$NODE" ]; then
exit 1
fi

exec "${NODE}" "${DIR}/src/cli" ${@}
NODE_OPTIONS="${NODE_OPTIONS:=--max-old-space-size=250}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line, we decided not to set a default.

exec "${NODE}" $NODE_OPTIONS "${DIR}/src/cli" ${@}

6 changes: 5 additions & 1 deletion bin/kibana.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ If Not Exist "%NODE%" (
)
)

if "%NODE_OPTIONS%" == "" (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the defaults, we've decided not to set a default.

set NODE_OPTIONS=--max-old-space-size=250
)

TITLE Kibana Server
"%NODE%" "%DIR%\src\cli" %*
"%NODE%" %NODE_OPTIONS% "%DIR%\src\cli" %*

:finally

Expand Down