Priyanshu.
Priyanshu.
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Priyanshu. on 11/4/2023 in #djs-questions
My bot crashes because of memory leaks like after every 20 min's it crashes
<--- Last few GCs ---> [23636:000001C06D5C3E30] 625016 ms: Mark-Compact 4044.5 (4132.0) -> 4034.5 (4138.3) MB, 864.26 / 0.44 ms (average mu = 0.846, current mu = 0.360) allocation failure; scavenge might not succeed [23636:000001C06D5C3E30] 627063 ms: Mark-Compact 4050.4 (4138.3) -> 4040.7 (4144.3) MB, 1913.09 / 0.42 ms (average mu = 0.526, current mu = 0.066) allocation failure; scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 1: 00007FF7A2E8C1FF node::SetCppgcReference+13695 2: 00007FF7A2E04E16 DSA_meth_get_flags+75686 3: 00007FF7A2E06C51 DSA_meth_get_flags+83425 4: 00007FF7A38C55D1 v8::Isolate::ReportExternalAllocationLimitReached+65 5: 00007FF7A38AEFC8 v8::Function::Experimental_IsNopFunction+1192 6: 00007FF7A36FFAB0 v8::StackTrace::GetFrameCount+426608 7: 00007FF7A36FCD95 v8::StackTrace::GetFrameCount+415061 8: 00007FF7A3712194 v8::StackTrace::GetFrameCount+502100 9: 00007FF7A3712A58 v8::StackTrace::GetFrameCount+504344 10: 00007FF7A371CCF2 v8::StackTrace::GetFrameCount+545970 11: 00007FF7A372CF42 v8::StackTrace::GetFrameCount+612098 12: 00007FF7A37317C8 v8::StackTrace::GetFrameCount+630664 13: 00007FF7A34B3FFB v8::base::Thread::StartSynchronously+371947 14: 00007FF7A3403239 v8::PropertyDescriptor::value+11833 15: 00007FF7A3402D1C v8::PropertyDescriptor::value+10524 16: 00007FF7A33DFCB2 v8::CodeEvent::GetFunctionName+44850 17: 00007FF74392667A
4 replies