mirror of
https://github.com/unraid/api.git
synced 2026-01-16 05:37:25 -06:00
improvement(memory-leak): add node flags to reduce memory usage
This commit is contained in:
@@ -13,11 +13,13 @@ module.exports = {
|
||||
},
|
||||
'env_safe-mode': {
|
||||
PORT: '/var/run/graphql-api.sock',
|
||||
NODE_ENV: 'safe-mode'
|
||||
NODE_ENV: 'safe-mode',
|
||||
node_args: '--max_old_space_size=60 --optimize_for_size --always_compact'
|
||||
},
|
||||
env_debug: {
|
||||
PORT: '/var/run/graphql-api.sock',
|
||||
NODE_ENV: 'production',
|
||||
node_args: '--max_old_space_size=60 --optimize_for_size --always_compact',
|
||||
DEBUG: true
|
||||
},
|
||||
env_production: {
|
||||
@@ -26,7 +28,7 @@ module.exports = {
|
||||
error_file: '/var/log/graphql-api/error.log',
|
||||
out_file: '/var/log/graphql-api/out.log',
|
||||
exp_backoff_restart_delay: 100,
|
||||
max_memory_restart: '300M'
|
||||
node_args: '--max_old_space_size=60 --optimize_for_size --always_compact'
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user