how to adjust memory size for build
Closed this issue · 4 comments
Path: [Zadig v1.15.0/04.项目/07.scan.md](https://docs.koderover.com/zadig/Zadig v1.15.0/project/scan/)
vite 构建项目 报内存溢出
<--- Last few GCs --->
[347:0x68ee230] 67912 ms: Mark-sweep (reduce) 2035.0 (2082.8) -> 2034.6 (2083.5) MB, 1258.2 / 0.0 ms (average mu = 0.158, current mu = 0.003) allocation failure; scavenge might not succeed
[347:0x68ee230] 69155 ms: Mark-sweep (reduce) 2035.7 (2083.5) -> 2035.2 (2084.0) MB, 1238.7 / 0.0 ms (average mu = 0.085, current mu = 0.003) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0xb7a940 node::Abort() [node]
2: 0xa8e823 [node]
3: 0xd5c940 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xd5cce7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xf3a3e5 [node]
6: 0xf4c8cd v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
7: 0xf26fce v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
8: 0xf28397 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
9: 0xf0956a v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
10: 0x12ce7af v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
11: 0x16fb6b9 [node]
Aborted (core dumped)
2023-05-16T18:15:23.692+0800 Failed to run: failed to execute user build script: exit status 134.
2023-05-16T18:15:23.692+0800 Job Status: fail
2023-05-16T18:15:23.692+0800 ====================== Build End. Duration: 93.80 seconds ======================
我应该如何指定在工作流中构建vite项目 node环境的内存大小?
not sure you mean build or scan, you can adjust the memory in advanced setting
FYI:
@7757 the title is changed to how to adjust memory size for build
, please be noted
not sure you mean build or scan, you can adjust the memory in advanced setting
FYI:
thank you is ok!