RSS memory increases while heap is stable in Node.js

Viewed 2549

I've got a node.js application that supporting React server rendering with communicating internal server API. BTW, application's RSS memory is increasing gradually.

I've been troubleshooting for 5 days now and already checked comparison of heap dump. But heap was stable. Only RSS was increasing.

2017-06-29 09:10:00 083: memoryUsage { rss: 107597824, heapTotal: 78532608, heapUsed: 68423584 }
2017-06-29 09:10:00 212: memoryUsage { rss: 107163648, heapTotal: 78532608, heapUsed: 67970768 }
2017-06-29 09:10:00 377: memoryUsage { rss: 106213376, heapTotal: 77484032, heapUsed: 67166800 }
2017-06-29 09:10:00 448: memoryUsage { rss: 106184704, heapTotal: 78532608, heapUsed: 62869512 }
....
....
2017-06-30 15:25:00 144: memoryUsage { rss: 140972032, heapTotal: 78532608, heapUsed: 65703576 }
2017-06-30 15:25:00 379: memoryUsage { rss: 135626752, heapTotal: 74338304, heapUsed: 64624224 }
2017-06-30 15:25:00 396: memoryUsage { rss: 139800576, heapTotal: 78532608, heapUsed: 66888688 }
2017-06-30 15:25:00 699: memoryUsage { rss: 140886016, heapTotal: 77484032, heapUsed: 67736488 }
2017-06-30 15:25:00 926: memoryUsage { rss: 142073856, heapTotal: 78532608, heapUsed: 67849096 }

At first, I thought that it causes from many client requests. However, today, I met huge traffic in short term. BTW, the RSS memory is not increased as much as traffic. It was strange.

I really wanna fix this issue. How and what should I do more?

Node.js version: 6.9.4
OS: RHEL 6.8

Memory Usage enter image description here

Network Input enter image description here

1 Answers
Related