ssbc / ssb-fixtures

Generate a simulated .ssb folder
10 stars 1 forks source link

Can't generate more than 2.4 million msgs #15

Open staltz opened 2 years ago

staltz commented 2 years ago

I keep getting this crash on my computer with 16GB RAM:

Generating msg 2430856 / 3000000
<--- Last few GCs --->

[1762411:0x3693ed0]  5744971 ms: Scavenge 2005.2 (2050.4) -> 2004.3 (2050.4) MB, 10.0 / 0.0 ms  (average mu = 0.310, current mu = 0.320) allocation failure 
[1762411:0x3693ed0]  5744985 ms: Scavenge 2005.3 (2050.4) -> 2004.3 (2050.4) MB, 10.3 / 0.0 ms  (average mu = 0.310, current mu = 0.320) allocation failure 
[1762411:0x3693ed0]  5744999 ms: Scavenge 2005.3 (2050.4) -> 2004.4 (2050.4) MB, 10.7 / 0.0 ms  (average mu = 0.310, current mu = 0.320) allocation failure 

<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x1409219]
    1: StubFrame [pc: 0x138ff81]
Security context: 0x13bf9b6808d1 <JSObject>
    2: a(aka a) [0x157fd1f88a39] [/home/staltz/oss/ssb-fixtures/node_modules/.pnpm/implausible@3.0.4/node_modules/implausible/lib/implausible.umd.js:~1] [pc=0x3fb9ca1095d5](this=0x29c2f16004b1 <undefined>,0x2e916fb484d9 <String[20]: 101587391applebanana>,0x29c2f16004b1 <undefined>,0x29c2f16004b1 <undefined>)
    3: generateRandomP...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xa17c40 node::Abort() [node]
 2: 0xa1804c node::OnFatalError(char const*, char const*) [node]
 3: 0xb95a7e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xb95df9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xd53075  [node]
 6: 0xd53706 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
 7: 0xd5ffc5 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
 8: 0xd60e75 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 9: 0xd6392c v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
10: 0xd2a34b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
11: 0x106c91e v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
12: 0x1409219  [node]
[1]    1762411 abort      node lib/bin.js --seed applebanana --messages=3000000 --authors=50000