Browse Source

added nodejs memory leak workaround

pull/7613/head
YevhenBondarenko 4 years ago
parent
commit
11bd9b5257
  1. 3
      docker/tb-js-executor.env
  2. 2
      msa/js-executor/config/default.yml
  3. 2
      msa/js-executor/docker/start-js-executor.sh

3
docker/tb-js-executor.env

@ -3,4 +3,5 @@ LOGGER_LEVEL=info
LOG_FOLDER=logs
LOGGER_FILENAME=tb-js-executor-%DATE%.log
DOCKER_MODE=true
SCRIPT_BODY_TRACE_FREQUENCY=1000
SCRIPT_BODY_TRACE_FREQUENCY=1000
NODE_OPTIONS="--max-old-space-size=200"

2
msa/js-executor/config/default.yml

@ -64,7 +64,7 @@ logger:
script:
use_sandbox: "true"
memory_usage_trace_frequency: "10000"
memory_usage_trace_frequency: "1000"
script_body_trace_frequency: "10000"
stat_print_frequency: "10000"
max_active_scripts: "1000"

2
msa/js-executor/docker/start-js-executor.sh

@ -27,4 +27,4 @@ source "${CONF_FOLDER}/${configfile}"
cd ${pkg.installFolder}
# This will forward this PID 1 to the node.js and forward SIGTERM for graceful shutdown as well
exec node server.js
exec --no-compilation-cache node server.js

Loading…
Cancel
Save