cancel
Showing results for 
Search instead for 
Did you mean: 

node.js max_old_space_size option and CAP?

SamueleBarzaghi
Participant
0 Kudos

Hi,

Which is the correct way to use the node.js max_old_space_size option with CAP?

Is this supported in package.json?

    "scripts": {
        "start": "node --max_old_space_size=192 ./node_modules/.bin/cds run",
    },

Thank you,

Sam

Accepted Solutions (1)

Accepted Solutions (1)

chgeo
Advisor
Advisor

See https://support.circleci.com/hc/en-us/articles/360009208393-How-can-I-increase-the-max-memory-for-No...

Most flexible option is to use the NODE_OPTIONS environment variable, i.e.

NODE_OPTIONS=--max_old_space_size=... cds run

Answers (0)