Ineffective mark-compacts near heap limit Allocation failed

Hello all,

I have a problem with memory leakage while building the code. and it is working fine in localhost.
Please revert me if anyone know the solution. Complete log of the error is given below.

– Last few GCs —>

[520:000002060BBDD370] 73393 ms: Scavenge 1380.6 (1423.7) -> 1379.8 (1423.7) MB, 3.0 / 0.0 ms (average mu = 0.119, current mu = 0.063) allocation failure
[520:000002060BBDD370] 73398 ms: Scavenge 1380.8 (1424.2) -> 1380.0 (1424.7) MB, 2.5 / 0.0 ms (average mu = 0.119, current mu = 0.063) allocation failure
[520:000002060BBDD370] 73402 ms: Scavenge 1381.0 (1424.7) -> 1380.2 (1425.2) MB, 2.2 / 0.0 ms (average mu = 0.119, current mu = 0.063) allocation failure

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF72F8181BA v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4506
2: 00007FF72F7F2C56 node::MakeCallback+4534
3: 00007FF72F7F35D0 node_module_register+2032
4: 00007FF72FB0BA9E v8::internal::FatalProcessOutOfMemory+846
5: 00007FF72FB0B9CF v8::internal::FatalProcessOutOfMemory+639
6: 00007FF72FCF21C4 v8::internal::Heap::MaxHeapGrowingFactor+9620
7: 00007FF72FCE91A6 v8::internal::ScavengeJob::operator=+24550
8: 00007FF72FCE77FC v8::internal::ScavengeJob::operator=+17980
9: 00007FF72FCF0547 v8::internal::Heap::MaxHeapGrowingFactor+2327
10: 00007FF72FCF05C6 v8::internal::Heap::MaxHeapGrowingFactor+2454
11: 00007FF72FE1A867 v8::internal::factory::NewFillerObject+55
12: 00007FF72FE97A56 v8::internal::operator<<+73494
13: 000001027065C5C1

Thank you.

Do you use the --max-old-space-size=8192 switch as described in the doc?

3 Likes