Saturday, 24 February 2018

Socket.io and memory usage

Who can explain me why node.js and socket.io working this way: 1. Starting the process = 150mb used (Serving about 2000 connected clients.) 2. Waiting some time... 3. I see a spike in CPU usage and memory consumption rises to 300mb 4. After 24hrs it will be about 500-700mb but stable. Node never releases memory.Staring with: rss: 179134464, heapTotal: 98697216, heapUsed: 67785728, external: 57122913Then rss becomes about 500-700mb but heapUsed +- stable. Inspected the app - no memory leaks in the code.Thank you.

Submitted February 24, 2018 at 05:15PM by TwoMovies

No comments:

Post a Comment