在出错之前,我正在调用sub agen做调研
<— Last few GCs —>
[197885:0x2171c000] 11746618 ms: Mark-Compact (reduce) 4033.4 (4085.1) → 4033.4 (4054.1) MB, pooled: 0 MB, 137.64 / 0.00 ms (average mu = 0.341, current mu = 0.000) last resort; GC in old space requested
[197885:0x2171c000] 11746722 ms: Mark-Compact (reduce) 4033.4 (4054.1) → 4033.4 (4054.1) MB, pooled: 0 MB, 103.55 / 0.00 ms (average mu = 0.222, current mu = 0.000) last resort; GC in old space requested
<— JS stacktrace —>
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0xe1bdfe node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/local/bin/node]
2: 0x123e800 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/local/bin/node]
3: 0x123ead7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/local/bin/node]
4: 0x145b66c v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
5: 0x143387e v8::internal:
:AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/usr/local/bin/node]
6: 0x1422974 v8::internal::FactoryBasev8::internal::Factory::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Taggedv8::internal::Map, v8::internal::AllocationAlignment) [/usr/local/bin/node]
7: 0x142487f v8::internal::FactoryBasev8::internal::Factory::NewRawTwoByteString(int, v8::internal::AllocationType) [/usr/local/bin/node]
8: 0x1779355 v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handlev8::internal::ConsString, v8::internal::AllocationType) [/usr/local/bin/node]
9: 0x1880d54 v8::internal::RegExpImpl::IrregexpExec(v8::internal::Isolate*, v8::internal::Handlev8::internal::JSRegExp, v8::internal::Handlev8::internal::String, int, v8::internal::Handlev8::internal::RegExpMatchInfo, v8::internal::RegExp::ExecQuirks) [/usr/local/bin/node]
10: 0x18a87d8 v8::internal::Runtime_RegExpExecTreatMatchAtEndAsFailure(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
11: 0x718147eac476
(node:197873) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use node --trace-warnings ... to show where the warning was created)

