1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

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/
This commit is contained in:
Whymarrh Whitby 2020-10-27 12:44:24 -02:30 committed by GitHub
parent d1b4d29219
commit 5e5d9e6c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: