Skip to content

Commit bc1b787

Browse files
committed
Allow Node to use more memory for old space
This flag essentially configures how much memory Node can use. If it’s too low, then Node processes may hang as Node spends time garbage collecting. Increasing it allows more memory to be used before garbage collection is necessary. Travis VMs have 7.5GB of memory, so set the limit to just below that to avoid running out of memory completely.
1 parent 4c76f65 commit bc1b787

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ node_js:
77
- 8
88
env:
99
global:
10+
- CHROMEDRIVER_VERSION=LATEST
1011
- NODE_ENV=production
11-
- SMOKE_URL=https://llk.github.io/scratch-gui/$TRAVIS_PULL_REQUEST_BRANCH
12+
- NODE_OPTIONS=--max-old-space-size=7250
1213
- NPM_TAG=latest
1314
- RELEASE_VERSION="0.1.0-prerelease.$(date +'%Y%m%d%H%M%S')"
14-
- CHROMEDRIVER_VERSION=LATEST
15+
- SMOKE_URL=https://llk.github.io/scratch-gui/$TRAVIS_PULL_REQUEST_BRANCH
1516
cache:
1617
directories:
1718
- node_modules

0 commit comments

Comments
 (0)