Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Node.js Memory allocation

Not applicable

I have Xms1024m -Xmx3072m on my MP where as when I print mem usage in my node.js script I see

mem{ rss: 1045430272, heapTotal: 2863661056, heapUsed: 1045430272 }.

I assume this ~2864 mb is separate but not part of MP memory allocation , true ? If thats true if I have any memory leaks in my node.js will it bring Mp down ?

Solved Solved
0 5 1,034
1 ACCEPTED SOLUTION

Not applicable
The Node code runs in the same heap as everything in the MP -- it's all one big heap. "process.memoryUsage()" was returning strange results a few releases ago -- you might be better off using ordinary Java mechanisms to track your memory usage.

View solution in original post

5 REPLIES 5