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

How to add node --max-old-space-size flag? #210

Open
gsc-dev opened this issue Jul 26, 2017 · 3 comments
Open

How to add node --max-old-space-size flag? #210

gsc-dev opened this issue Jul 26, 2017 · 3 comments

Comments

@gsc-dev
Copy link

gsc-dev commented Jul 26, 2017

Tried to use --exec option without sucess:

supervisor --exec 'node --max-old-space-size=1000' ./index.js

Error:

Running node-supervisor with
  program './index.js'
  --watch '.'
  --extensions 'node,js'
  --exec 'node --max-old-space-size=1000'

Starting child process with 'node --max-old-space-size=1000 ./index.js'
Watching directory '/Users/ronaldo.pontes/code/tracking-proxy' for changes.
Press rs for restarting the process.
Parent process exiting, terminating child...
events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: spawn node --max-old-space-size=1000 ENOENT
    at exports._errnoException (util.js:1050:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
    at Module.runMain (module.js:607:11)
    at run (bootstrap_node.js:427:7)
    at startup (bootstrap_node.js:151:9)
    at bootstrap_node.js:542:3
@rixo
Copy link

rixo commented Aug 30, 2017

This worked for me:

supervisor -- --max-old-space-size=1000 ./index.js

@APPLLEJN
Copy link

the same problem,how to fix it

@mariohmol
Copy link

any updates adding this flag with supervisord? shouldnt this be on .conf file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants