# Travis fails building Gatsby 2 / Memory exceeded

**URL:** <https://travis-ci.community/t/travis-fails-building-gatsby-2-memory-exceeded/2007>\
**Category:** Environments\
**Created:** [January 26, 2019, 2:58am UTC](https://travis-ci.community/t/travis-fails-building-gatsby-2-memory-exceeded/2007 "2019-01-26T02:58:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![priley86](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@priley86](https://travis-ci.community/u/priley86)\
**Post date:** [January 26, 2019, 2:58am UTC](https://travis-ci.community/t/travis-fails-building-gatsby-2-memory-exceeded/2007/1 "2019-01-26T02:58:20Z")

</div>

Hi, I just started seeing these errors in our Travis logs. Is there anything we can do to increase memory allocated to building Gatsby 2? I expect this to be a common problem…

CI build:  
[https://travis-ci.org/patternfly/patternfly-react/builds/484629851](https://travis-ci.org/patternfly/patternfly-react/builds/484629851)

Relevant JS errors:

11.412 s e[36me[1m@patternfly/react-docse[22me[39m: \<— Last few GCs —\> e[36me[1m@patternfly/react-docse[22me[39m: [9236:0x3d1c560] 403641 ms: Mark-sweep 1316.2 (1465.8) -\> 1316.2 (1465.8) MB, 1280.8 / 0.0 ms allocation failure GC in old space requested e[36me[1m@patternfly/react-docse[22me[39m: [9236:0x3d1c560] 405777 ms: Mark-sweep 1316.2 (1465.8) -\> 1316.2 (1427.3) MB, 1787.2 / 0.0 ms last resort GC in old space requested e[36me[1m@patternfly/react-docse[22me[39m: [9236:0x3d1c560] 407505 ms: Mark-sweep 1316.2 (1427.3) -\> 1316.2 (1424.8) MB, 1727.0 / 0.0 ms last resort GC in old space requested e[36me[1m@patternfly/react-docse[22me[39m: \<— JS stacktrace —\> e[36me[1m@patternfly/react-docse[22me[39m: ==== JS stack trace ========================================= e[36me[1m@patternfly/react-docse[22me[39m: Security context: 0x27519c0a58b9 \<JSObject\> e[36me[1m@patternfly/react-docse[22me[39m: 1: n [/home/travis/build/patternfly/patternfly-react/node\_modules/terser/dist/bundle.js:~44] [pc=0x138413177f41](this=0x15531a70c2f1 \<JSGlobal Object\>,e=0x351550944439 \<JSArray[0]\>,t=0x35155096e809 \<vn map = 0x24a464c06e51\>) e[36me[1m@patternfly/react-docse[22me[39m: 2: /\* anonymous _/ [/home/travis/build/patternfly/patternfly-react/node\_modules/terser/dist/bundle.js:44] [bytecode=0x296770edb099 offset=38](this=0x15531a70c2f1 \<JS… e[36m@patternfly/react-docse[39m: FATAL ERROR: CALL\_AND\_RETRY\_LAST Allocation failed - JavaScript heap out of memory e[36m@patternfly/react-docse[39m: 1: node::Abort() [node] e[36m@patternfly/react-docse[39m: 2: 0x8ccf9c [node] e[36m@patternfly/react-docse[39m: 3: v8::Utils::ReportOOMFailure(char const_, bool) [node] e[36m@patternfly/react-docse[39m: 4: v8::internal::V8::FatalProcessOutOfMemory(char const\*, bool) [node] e[36m@patternfly/react-docse[39m: 5: v8::internal:🏭:NewCode(v8::internal::CodeDesc const&, unsigned int, v8::internal::Handle\<v8::internal::Object\>, bool, int) [node] e[36m@patternfly/react-docse[39m: 6: v8::internal::CodeGenerator::MakeCodeEpilogue(v8::internal::TurboAssembler\*, v8::internal::EhFrameWriter\*, v8::internal::CompilationInfo\*, v8::internal::Handle\<v8::internal::Object\>) [node] e[36m@patternfly/react-docse[39m: 7: v8::internal::compiler::CodeGenerator::FinalizeCode() [node] e[36m@patternfly/react-docse[39m: 8: v8::internal::compiler::PipelineImpl::FinalizeCode() [node] e[36m@patternfly/react-docse[39m: 9: v8::internal::compiler::PipelineCompilationJob::FinalizeJobImpl() [node] e[36m@patternfly/react-docse[39m: 10: v8::internal::Compiler::FinalizeCompilationJob(v8::internal::CompilationJob\*) [node] e[36m@patternfly/react-docse[39m: 11: v8::internal::OptimizingCompileDispatcher::InstallOptimizedFunctions() [node] e[36m@patternfly/react-docse[39m: 12: v8::internal::StackGuard::HandleInterrupts() [node] e[36m@patternfly/react-docse[39m: 13: v8::internal::Runtime\_StackGuard(int, v8::internal::Object\*\*, v8::internal::Isolate\*) [node] e[36m@patternfly/react-docse[39m: 14: 0x1384117042fd e[36m@patternfly/react-docse[39m: Aborted (core dumped) e[36m@patternfly/react-docse[39m: error Command failed with exit code 134. e[36me[1m@patternfly/react-docse[22me[39m: info Visit [https://yarnpkg.com/en/docs/cli/run](https://yarnpkg.com/en/docs/cli/run) for documentation about this command.
