在主程序运行组件代码时nodejs内存一直在涨导致项目崩溃
报错信息如下:
vite v5.4.9 building for production…
transforming…
Comment replacement failed to change anything
node_modules/ace-builds/src-noconflict/worker-coffee.js (5125:66): Use of eval in “node_modules/ace-builds/src-noconflict/worker-coffee.js” is strongly discouraged as it poses security risks and may cause issues with minification.
✓ 2407 modules transformed.
rendering chunks…
<— Last few GCs —>
[22052:000001FBEA714E60] 63549 ms: Mark-sweep 1971.6 (2093.0) → 1971.6 (2093.0) MB, 951.2 / 0.0 ms (average mu = 0.104, current mu = 0.007) allocation failure; scavenge might not succeed
[22052:000001FBEA714E60] 64551 ms: Mark-sweep 1978.9 (2099.9) → 1949.7 (2071.2) MB, 985.5 / 0.0 ms (average mu = 0.061, current mu = 0.016) allocation failure; scavenge might not succeed
<— JS stacktrace —>
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF670EC027F node_api_throw_syntax_error+175631
2: 00007FF670E45B66 v8::internal::wasm::WasmCode::safepoint_table_offset+63110
3: 00007FF670E46F22 v8::internal::wasm::WasmCode::safepoint_table_offset+68162
4: 00007FF6718E1464 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF6718CC7C2 v8::Isolate::Exit+674
6: 00007FF67174E60C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF67175B8ED v8::internal::Heap::PublishPendingAllocations+1117
8: 00007FF671758977 v8::internal::Heap::PageFlagsAreConsistent+3367
9: 00007FF67174B0A7 v8::internal::Heap::CollectGarbage+2039
10: 00007FF671761A63 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
11: 00007FF67176230D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
12: 00007FF67176AC5A v8::internal::AllocateRaw+810
13: 00007FF67177E09D v8::internal::FactoryBasev8::internal::Factory::NewHeapNumber<0>+685
14: 00007FF671782548 v8::internal::FactoryBasev8::internal::Factory::NewRawTwoByteString+72
15: 00007FF671778D05 v8::internal::NewStringFromUtf8+181
16: 00007FF6718DDB69 v8::String::NewFromUtf8+153
17: 00007FF670D3D7A2 node::SetTracingController+42418
18: 00007FF670E68739 v8::internal::Malloced::operator delete+4409
19: 00007FF671903D32 v8::internal::SetupIsolateDelegate::SetupHeap+54946
20: 00007FF5F1F4BEA7