How to change cluster size max_memory of application

9 views
Skip to first unread message

Satyendra Sing

unread,
Feb 16, 2017, 2:26:14 AM2/16/17
to StrongLoop
Hi,
I am running my node application using strong-pm service on prod
and command to start application -

ExecStart=/opt/node/bin/node /opt/node/lib/node_modules/strong-pm/bin/sl-pm.js --listen 8701 --base /var/lib/strong-pm --base-port 3000 --driver direc


above command is in strong-pm.service file and my machine is 4 core, so Its sl-pm starting 4 instances.


Now I want to start my application with 2 instances only and want to increase ram for each instance (for node we set -max_memory ).


Need help to know how to achieve this. My application is heavy and each instance is getting downed due to out of memory.



Thanks,

Satyendra Singh.

Reply all
Reply to author
Forward
0 new messages