[FOLIO-1259] allocation failure GC in old space: --max-old-space-size=2048 Created: 24/May/18  Updated: 12/Nov/18  Resolved: 24/May/18

Status: Closed
Project: FOLIO
Components: Continuous Integration
Affects versions: None
Fix versions: None

Type: Bug Priority: P3
Reporter: Julian Ladisch Assignee: Julian Ladisch
Resolution: Done Votes: 0
Labels: sprint38
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint:

 Description   

Running /etc/folio/stripes/build-run in the vagrant boxes folio/snapshot and folio/testing was possible for a long time. Since a few days it fails with an allocation failure:

vagrant ssh -c "/etc/folio/stripes/build-run"
yarn run v1.7.0
$ stripescore build stripes.config.js output --sourcemap

<--- Last few GCs --->

[5771:0x25fa700]   169922 ms: Mark-sweep 1329.5 (1497.7) -> 1329.1 (1504.2) MB, 1508.7 / 0.0 ms  allocation failure GC in old space requested
[5771:0x25fa700]   171362 ms: Mark-sweep 1329.1 (1504.2) -> 1328.9 (1468.7) MB, 1439.2 / 0.0 ms  last resort GC in old space requested
[5771:0x25fa700]   172829 ms: Mark-sweep 1328.9 (1468.7) -> 1328.9 (1466.2) MB, 1466.5 / 0.0 ms  last resort GC in old space requested


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x24316b225879 <JSObject>
    1: addMappingWithCode [/etc/folio/stripes/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:~150] [pc=0xfb9479bef00](this=0x217f7ab0c209 <JSGlobal Object>,mapping=0x12d91bfb74c1 <Object map = 0x23483ba26329>,code=0x1bb153fad09 <String[10]: writable:!>)
    2: /* anonymous */ [/etc/folio/stripes/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:~86]...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [node]
 2: 0x8c20ec [node]
 3: v8::Utils::ReportOOMFailure(char const*, bool) [node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
 5: v8::internal::Factory::NewUninitializedFixedArray(int) [node]
 6: 0xd4af53 [node]
 7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [node]
 8: 0xfb946b042fd
Aborted
error Command failed with exit code 134.

To fix it we need to invoke node with the --max-old-space-size=2048 option. A value of 1248 is too small, a value >= 1536 works.



 Comments   
Comment by Julian Ladisch [ 24/May/18 ]

The pull request awaits code review, if ok please merge: https://github.com/folio-org/folio-testing-platform/pull/14

Comment by Julian Ladisch [ 24/May/18 ]

Thanks for the help on slack!

Generated at Thu Feb 08 23:12:00 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.