简体   繁体   English

NodeJs/TestCafe:致命错误:接近堆限制的无效标记压缩分配失败 - JavaScript 堆内存不足

[英]NodeJs/TestCafe : FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

While running my testscripts in node v14.6.0, i'm seeing the below issue.在节点 v14.6.0 中运行我的测试脚本时,我看到了以下问题。

Options tried -尝试的选项 -

  1. I tried to increasing the Node Heap Size , but no luck export NODE_OPTIONS=--max_old_space_size=4096我试图增加节点堆大小,但没有运气 export NODE_OPTIONS=--max_old_space_size=4096
  2. added the below in package.json "start": "react-scripts --max_old_space_size=4096 start", "build": "react-scripts --max_old_space_size=4096 build",在 package.json "start": "react-scripts --max_old_space_size=4096 start", "build": "react-scripts --max_old_space_size=4096 build" 中添加了以下内容,

<--- Last few GCs ---> <--- 最后几次 GC --->

[65847:0x108000000]   415572 ms: Mark-sweep (reduce) 8189.2 (8204.8) -> 8188.5 (8204.8) MB, 4380.9 / 31.8 ms  (average mu = 0.131, current mu = 0.003) allocation failure scavenge might not succeed
[65847:0x108000000]   420034 ms: Mark-sweep (reduce) 8189.5 (8201.8) -> 8188.7 (8203.0) MB, 4450.9 / 28.9 ms  (average mu = 0.071, current mu = 0.002) allocation failure scavenge might not succeed

<--- JS stacktrace ---> <--- JS 堆栈跟踪 --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x1012b7fd5 node::Abort() (.cold.1) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
 2: 0x1000a3fa9 node::Abort() [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
 3: 0x1000a410f node::OnFatalError(char const*, char const*) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
 4: 0x1001e57f7 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
 5: 0x1001e5793 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
 6: 0x100383775 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
 7: 0x10038523a v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
 8: 0x100380909 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
 9: 0x10037e1a1 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
10: 0x10038ca3a v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
11: 0x10038cac1 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
12: 0x10035a487 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
13: 0x1006d8758 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
14: 0x100a4faf9 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
15: 0x100a148bd Builtins_AsyncFunctionEnter [/Users/vn0lka6/.nvm/versions/node/v14.6.0/bin/node]
16: 0x3367850aaa95 
Abort trap: 6

Please help me to resolve the issue.请帮我解决这个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命错误:堆限制附近的无效标记压缩分配失败 - Ionic 3 中的 JavaScript 堆内存不足 - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory in Ionic 3 JS 无限循环:致命错误:无效标记压缩接近堆限制分配失败 - JavaScript 堆出 memory - JS Infinite loop : FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 致命错误:接近堆限制的无效标记压缩分配失败 - 使用 fs 处理大文件时 JavaScript 堆内存不足 - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory when processing large files with fs 致命错误:接近堆限制的无效标记压缩分配失败 - 运行 typescript 节点项目时 JavaScript 堆内存不足 - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory while running typescript node project 致命错误:无效标记压缩接近堆限制分配失败 - JavaScript 堆出 memory Angular 13 应用程序 - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Angular 13 application Github 操作失败:无效标记压缩接近堆限制分配失败 - JavaScript 堆出 memory - Github actions fails: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 接近堆限制的无效标记压缩分配失败 - JavaScript 堆内存不足 - Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory on expo 接近堆限制的无效标记压缩分配失败 - JavaScript 堆内存不足 - Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory in angular 堆限制附近的无效标记压缩分配失败 - JavaScript 堆出 memory Ionic 3 产品构建 - Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Ionic 3 prod build 在 Rasperry Pi 上构建 Angular App 导致接近堆限制的无效标记压缩分配失败 - JavaScript 堆内存不足 - Build Angular App on Rasperry Pi causes Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM