Set NODE_OPTIONS=--max_old_space_size=1024 for builds (#9731)

This reduces the footprint of each Node process in an attempt to try
and lower the failure rate.

> Expected behavior with –max-old-space-size within container constraints
>
> By default, Node.js (up to 11.x) uses a maximum heap size of 700MB and 1400MB
> on 32-bit and 64-bit platforms, respectively. For current defaults, see the
> reference mentioned at the end of blog.

  [1]:https://developer.ibm.com/languages/node-js/articles/nodejs-memory-management-in-container-environments/
feature/default_network_editable
Whymarrh Whitby 4 years ago committed by GitHub
parent d1b4d29219
commit 5e5d9e6c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .circleci/config.yml

@ -122,6 +122,8 @@ jobs:
prep-build:
docker:
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
environment:
NODE_OPTIONS: --max_old_space_size=1024
steps:
- checkout
- attach_workspace:
@ -141,6 +143,8 @@ jobs:
prep-build-test:
docker:
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
environment:
NODE_OPTIONS: --max_old_space_size=1024
steps:
- checkout
- attach_workspace:

Loading…
Cancel
Save