We are trying to ensure that the RAM allocation for edgemicro is as small as possible since it's being installed onto existing VMs within various customers existing on-premise infrastructure.
Is there any way to pass the node --max_old_space_size parameter using edgemicro start?
$ node --v8-options | grep max_old_space_size
From https://github.com/nodejs/node/wiki/Frequently-Asked-Questions
"By default, --max_old_space_size (which controls the upper limit of the V8 heap) is ~1.5GB. If your system has less memory than that, you will need to explicitly set this option to the appropriate amount of memory available to that process. For example, --max_old_space_size=128 will allow 128MB for that process."
im wondering if this is something that can also be pushed off to some higher level like System-d ? If so that might be a good way to go.
I've tried setting the ulimit max memory size through Upstart and that doesn't seem to have any effect, e.g.
limit rss 268435 536870
I've modified how edgemicro is started within our upstart script so the --max_old_space_size parameter is stuck between node and the edgemicro cli script and that appears to be working.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |