Skip to content

Commit aaa09d3

Browse files
committed
limiting NodeJS heap to 250MB (solves #17)
1 parent c7c0a11 commit aaa09d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kibana-init

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ KIBANA_LOG_DIR=/var/log/kibana
2828
KIBANA_LOG_FILE="${KIBANA_LOG_DIR}/$NAME.log"
2929
DAEMON_OPTS="-l ${KIBANA_LOG_FILE}"
3030
DESC="Kibana4"
31+
NODE_OPTIONS="--max-old-space-size=250"
3132

3233
if [ $(id -u) -ne 0 ]; then
3334
echo "You need root privileges to run this script"
@@ -55,7 +56,7 @@ case "$1" in
5556
chown ${KIBANA_USER}:${KIBANA_GROUP} ${KIBANA_LOG_FILE}
5657

5758
# Start Daemon
58-
start-stop-daemon --start --user $KIBANA_USER -c $KIBANA_USER \
59+
NODE_OPTIONS="$NODE_OPTIONS" start-stop-daemon --start --user $KIBANA_USER -c $KIBANA_USER \
5960
--group $KIBANA_GROUP --pidfile "$PID_FILE" --make-pidfile \
6061
--background --exec $DAEMON -- $DAEMON_OPTS
6162
log_end_msg $?

0 commit comments

Comments
 (0)