Node.js heap memory limit for single object
问题 Does v8 have limits on the heap allocations for single objects? a = new Array(1024*1024*102) fails on node command-line with FATAL ERROR: JS Allocation failed - process out of memory Also, this fails with the same error when run as a script node --expose-gc --nouse-idle-notification --max-old-space-size=8192 FATAL ERROR: CALL_AND_RETRY_0 Allocation failed - process out of memory var util = require('util'); o = {}; while(1) { o["hahahahahaha" + String(ctr)] = ctr; ctr++; if (ctr % 100000 === 0