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.
- Why my Memory Keeps on Increasing?
You got a memory leak
- Will it get down?
Sometimes GC kicks in and cleans up some things (that are not leaking)
- Is this occurs due to setInterval keeps on logging the process usage?
Usually not, but w/o seeing the code I can't say this for sure
- Is this occurs due to console logging of every request and response?
Usually not, but w/o seeing the code I can't say this for sure
- My Redis Database is kept open till my server crashes, it this causes this ?
Should not be a problem.
- Do i need use process mananger like new relic or strongloop to identify this?
It is one way to do it ... but there are also others.
- So how long this memory will keep on increasing, at some point it must stop (i want to know which point is that?)
Depends on the server setup. How much RAM + what else is running etc.
- I am using sequelize of MSSQL transaction using pooling concept? Does pooling makes this?
Usually not, but w/o seeing the code I can't say this for sure
Maybe this post helps you find the leak:
https://www.nearform.com/blog/how-to-self-detect-a-memory-leak-in-node/