@fbenab You can use the NODE_OPTIONS environment variable to control this aspect of mongosh, e.g. env NODE_OPTIONS='--max-old-space-size=4096' mongosh runs mongosh with a heap size of 4GB.
3 Likes
@fbenab You can use the NODE_OPTIONS environment variable to control this aspect of mongosh, e.g. env NODE_OPTIONS='--max-old-space-size=4096' mongosh runs mongosh with a heap size of 4GB.