dgraph-io / ratel

Dgraph Data Visualizer and Cluster Manager
Apache License 2.0
120 stars 49 forks source link

JavaScript heap out of memory during build #285

Closed riverdusty closed 1 month ago

riverdusty commented 2 years ago

When following build instructions, Debian 11 virtual machine.

<--- Last few GCs --->

[13541:0x55a2fc10e0c0]    92444 ms: Mark-sweep 478.7 (493.6) -> 475.0 (493.6) MB, 711.8 / 0.0 ms  (average mu = 0.194, current mu = 0.130) allocation failure scavenge might not succeed
[13541:0x55a2fc10e0c0]    93281 ms: Mark-sweep 479.0 (493.9) -> 475.2 (493.9) MB, 730.8 / 0.0 ms  (average mu = 0.162, current mu = 0.128) allocation failure scavenge might not succeed

<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x7fcc74acb999]
    1: StubFrame [pc: 0x7fcc74aac267]
Security context: 0x12d104c34f31 <JSObject>
    2: split [0x12d104c25349](this=0x226cfdd1c7f1 <String[25]: "OptionInspectorSettings">,0x226cfdd1c861 <JSRegExp <String[#5]: \r?\n>>)
    3: print(aka print) [0x27b4f7a53f29] [/root/go/src/github.com/dgraph-io/ratel/client/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:~6973] [pc=0x232dca0bb...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x7fcc73eba1a8 node::Abort() [/lib/x86_64-linux-gnu/libnode.so.72]
 2: 0x7fcc73df618e  [/lib/x86_64-linux-gnu/libnode.so.72]
 3: 0x7fcc74067f42 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.72]
 4: 0x7fcc740681ef v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.72]
 5: 0x7fcc74200e85  [/lib/x86_64-linux-gnu/libnode.so.72]
 6: 0x7fcc74210bdd v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.72]
 7: 0x7fcc74211886 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.72]
 8: 0x7fcc74213a0c v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.72]
 9: 0x7fcc74213a74 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.72]
10: 0x7fcc741da16b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/lib/x86_64-linux-gnu/libnode.so.72]
11: 0x7fcc7450b645 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/lib/x86_64-linux-gnu/libnode.so.72]
12: 0x7fcc74acb999  [/lib/x86_64-linux-gnu/libnode.so.72]
github-actions[bot] commented 2 months ago

This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.