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

Where to put node options and v8 options? #45

Closed
liuyanghejerry opened this issue Jul 5, 2013 · 4 comments
Closed

Where to put node options and v8 options? #45

liuyanghejerry opened this issue Jul 5, 2013 · 4 comments

Comments

@liuyanghejerry
Copy link

pm2 looks great for me but where to put node options, such as " --gc_global", when starting a new task?

@Unitech
Copy link
Owner

Unitech commented Jul 8, 2013

Not possible for the moment, when I will have time I will try to implement it,
Feel free to pull req also !

Thanks

@Unitech Unitech mentioned this issue Jul 8, 2013
5 tasks
@liuyanghejerry
Copy link
Author

Thanks, I'll try if I get it clear how pm2 works internally!

@YoshifumiShiiba
Copy link

If pm2 has that option, too nice. But now you need it:

node --v8_and_node_options /path/to/pm2 --pm2_options

Ex:

node --expose_gc /usr/local/bin/pm2 start app.js -i 2

@liuyanghejerry
Copy link
Author

Indeed. pm2 uses cluster, fork internally, to run new scripts, which makes it hard to insert any options to node. I'm thinking have a brand new implement of cluster. But that may take a lot of work :(

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