리액트 실행시 메모리 누수나고 접속(실행) 안될 때
프로그래밍/fe2025. 6. 15. 15:00
node lts 버전으로 다운그레이드 해보자.
<--- Last few GCs --->
[18062:0x148030000] 152000 ms: Scavenge (interleaved) 8178.6 (8199.5) -> 8172.9 (8200.5) MB, pooled: 0 MB, 10.50 / 0.00 ms (average mu = 0.333, current mu = 0.311) allocation failure;
[18062:0x148030000] 157527 ms: Mark-Compact (reduce) 8173.3 (8200.5) -> 8172.8 (8186.6) MB, pooled: 0 MB, 4086.71 / 0.00 ms (+ 28.8 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 4223 ms) (average mu = 0.316,
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0x1025b077c node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
2: 0x1027597e4 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
3: 0x102759798 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
4: 0x1029172a8 v8::internal::Heap::CallGCPrologueCallbacks(v8::GCType, v8::GCCallbackFlags, v8::internal::GCTracer::Scope::ScopeId) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
5: 0x102918fac v8::internal::Heap::DevToolsTraceEventScope::~DevToolsTraceEventScope() [/opt/homebrew/Cellar/node/23.4.0/bin/node]
6: 0x102917970 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1::operator()() const [/opt/homebrew/Cellar/node/23.4.0/bin/node]
7: 0x102917620 void heap::base::Stack::SetMarkerAndCallbackImpl<v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1>(heap::base::Stack*, void*, void const*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
8: 0x1024c0028 PushAllRegistersAndIterateStack [/opt/homebrew/Cellar/node/23.4.0/bin/node]
9: 0x102915bc8 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
10: 0x1028a3a28 v8::internal::StackGuard::HandleInterrupts(v8::internal::StackGuard::InterruptLevel) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
11: 0x102c1b544 v8::internal::Runtime_StackGuardWithGap(int, unsigned long*, v8::internal::Isolate*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
12: 0x10239f9f4 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/23.4.0/bin/node]
13: 0x10c7e5340
14: 0x10c8f2404
15: 0x10c8efc90
16: 0x10c7e7878
17: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
18: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
19: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
20: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
21: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
22: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
23: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
24: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
25: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
26: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
27: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
28: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
29: 0x102308838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.4.0/bin/node]
30: 0x102345e20 Builtins_AsyncFunctionAwaitResolveClosure [/opt/homebrew/Cellar/node/23.4.0/bin/node]
31: 0x102413298 Builtins_PromiseFulfillReactionJob [/opt/homebrew/Cellar/node/23.4.0/bin/node]
32: 0x102335214 Builtins_RunMicrotasks [/opt/homebrew/Cellar/node/23.4.0/bin/node]
33: 0x1023063f0 Builtins_JSRunMicrotasksEntry [/opt/homebrew/Cellar/node/23.4.0/bin/node]
34: 0x10287c0a0 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
35: 0x10287c770 v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
36: 0x1028a1858 v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
37: 0x1028a15e8 v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
38: 0x1024c15e8 node::InternalCallbackScope::Close() [/opt/homebrew/Cellar/node/23.4.0/bin/node]
39: 0x1024c1b98 node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
40: 0x1024d9ab0 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
41: 0x1025b69dc node::fs::FSReqCallback::Resolve(v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
42: 0x1025b836c node::fs::AfterNoArgs(uv_fs_s*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
43: 0x1025a7130 node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper(uv_fs_s*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
44: 0x10718a5f0 uv__work_done [/opt/homebrew/Cellar/libuv/1.49.2/lib/libuv.1.dylib]
45: 0x10718dc9c uv__async_io [/opt/homebrew/Cellar/libuv/1.49.2/lib/libuv.1.dylib]
46: 0x10719e110 uv__io_poll [/opt/homebrew/Cellar/libuv/1.49.2/lib/libuv.1.dylib]
47: 0x10718e130 uv_run [/opt/homebrew/Cellar/libuv/1.49.2/lib/libuv.1.dylib]
48: 0x1024c248c node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
49: 0x1025faeac node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
50: 0x1025fac00 node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/23.4.0/bin/node]
51: 0x102570840 node::Start(int, char**) [/opt/homebrew/Cellar/node/23.4.0/bin/node]
52: 0x189b7f154 start [/usr/lib/dyld]
✨ Done in 159.12s.
댓글 영역