Dev Collection
HomeGitHubAI Web
  • ReadMe
  • How to use patch-package
  • Add GCC for node-canvas in Centos7.x
  • Create Server-Sent Events in Nextjs
  • TimeZone in Jest
  • Common Git Commit Message Types
  • Node v8 memory leak
  • minIO + picGO self-hosted image hosting service
  • Preventing SSH remote brute-force attacks
  • Ubuntu安装Netflix-Proxy
  • SNIProxy+Dnsmasq实现Netflix-Proxy
  • Simultaneously Pushing a Repository to Two Different Remotes: GitHub and GitLab
  • Typescript中的类型谓词
  • Mac Sonoma 无法安装 Charles 的解决办法
  • Git 多账号管理:在不同文件夹区分Git账号
  • localStorage VS IndexedDB
  • Chrome Extension 开发指南
Powered by GitBook
On this page

Node v8 memory leak

JavaScript heap out of memory

node v8 内存泄漏

问题: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

解决:

#increase to 5gb
export NODE_OPTIONS="--max-old-space-size=5120" 

#increase to 6gb
export NODE_OPTIONS="--max-old-space-size=6144" 

#increase to 7gb
export NODE_OPTIONS="--max-old-space-size=7168" 

#increase to 8gb
export NODE_OPTIONS="--max-old-space-size=8192" 

PreviousCommon Git Commit Message TypesNextminIO + picGO self-hosted image hosting service

Last updated 1 year ago