У меня есть экземпляр aws ec2 t2.micro, и я развертываю проект nestjs, но выбрасывание достигшего предела кучи не позволило выделить кучу JavaScript из памяти

#amazon-web-services #nestjs

Вопрос:

 lt;--- Last few GCs ---gt;  [902:0x571dff0] 17654 ms: Mark-sweep (reduce) 484.1 (493.3) -gt; 483.5 (493.8) MB, 378.5 / 0.0 ms (  83.5 ms in 13 steps since start of marking, biggest step 15.9 ms, walltime since start of marking 525 ms) (average mu = 0.261, current mu = 0.269) alloc  lt;--- JS stacktrace ---gt;  FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory  1: 0xb02ec0 node::Abort() [node]  2: 0xa181fb node::FatalError(char const*, char const*) [node]  3: 0xced88e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]  4: 0xcedc07 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]  5: 0xea5ea5 [node]  6: 0xeb557d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]  7: 0xeb827e v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]  8: 0xe796aa v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]  9: 0x11f2e86 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node] 10: 0x15e7879 [node] Aborted (core dumped)