Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to understand if nodejs is out of memory

const used = process.memoryUsage().heapUsed / 1024 / 1024;
console.log(`The script uses approximately ${Math.round(used * 100) / 100} MB`);
Source by www.valentinog.com #
 
PREVIOUS NEXT
Tagged: #understand #nodejs #memory
ADD COMMENT
Topic
Name
7+3 =