vendredi 17 avril 2015

NodeJS: Why pm2 list shows memory keeps on increasing?

I am using HAPI.JS framework with NodeJS and created a proxy. Think that proxy means i am just maintaining session in redis. Other than that i am not doing anything in the code. May be only thing is i am using setInterval to log my process.memoryUsage() for every 3 mintues.


enter image description here


My Questions:



  1. Why my Memory Keeps on Increasing?

  2. Will it get down?

  3. Is this occurs due to setInterval keeps on logging the process usage?

  4. Is this occurs due to console logging of every request and response?

  5. My Redis Database is kept open till my server crashes, it this causes this ?

  6. Do i need use process mananger like new relic or strong loop to identify this?

  7. So how long this memory will keep on increasing, at some point it must stop (i want to know which point is that?)

  8. I am using sequelize of MSSQL transaction using pooling concept? Does pooling makes this?


P.S I am new to node JS.


Aucun commentaire:

Enregistrer un commentaire