Skip to content

Commit e30220f

Browse files
author
Joel Griffith
authored
Small README note on bumping memory for builds (#75247)
1 parent bfdaacd commit e30220f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/dev/build/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ node scripts/build --release
1616
node scripts/build --skip-node-download --debug --no-oss
1717
```
1818

19+
# Fixing out of memory issues
20+
21+
Building Kibana and its distributables can take a lot of memory to finish successfully. Builds do make use of child processes, which means you can increase the amount of memory available by specifying `NODE_OPTIONS="--max-old-space-size=VALUE-IN-MEGABYTES"`.
22+
23+
```sh
24+
25+
# Use 4GB instead of the standard 1GB for building
26+
NODE_OPTIONS="--max-old-space-size=4096" node scripts/build --release
27+
```
28+
1929
# Structure
2030

2131
The majority of this logic is extracted from the grunt build that has existed forever, and is designed to maintain the general structure grunt provides including tasks and config. The [build_distributables.js] file defines which tasks are run.

0 commit comments

Comments
 (0)