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

PM2 Low memory environment options #2501

Closed
Unitech opened this issue Nov 8, 2016 · 3 comments
Closed

PM2 Low memory environment options #2501

Unitech opened this issue Nov 8, 2016 · 3 comments

Comments

@Unitech
Copy link
Owner

Unitech commented Nov 8, 2016

Refering to http://fiznool.com/blog/2016/10/01/running-a-node-dot-js-app-in-a-low-memory-environment/

We could offer an option that could make PM2 well fitted for low-memory environment. We would mainly auto-tune max_old_space_size depending on the memory available.
By default PM2 use as low as 30mb memory, we could enhance this.

@Unitech
Copy link
Owner Author

Unitech commented Jul 4, 2017

configurable via

$ PM2_OPTIMIZE_MEMORY=true pm2 update

@Unitech
Copy link
Owner Author

Unitech commented Jul 20, 2017

Published on PM2 2.6.0:

$ npm install pm2@latest -g
$ pm2 update

@Unitech Unitech closed this as completed Jul 20, 2017
@jiangbodev
Copy link

how to use this PM2_OPTIMIZE_MEMORY ?

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

No branches or pull requests

2 participants