My node app becomes slow even after increased the ram size

274 Views Asked by At

The node app that am working becomes very slow and not even responding sometimes. While checking the logs I found that there was a problem with the memory. My app uses all 1400 ram space, then i searched for the solution and found to increase the memory so i increased the max space to 6gb ram, but still the app hits 6 gb and get hanged for period of time then restarts. Which makes my app very slow. Is there any way to solve this problem like clearing the memory or some other solution to make it fast.

Note: am using sequelize queries for sql, I'm not sure whether the problem is because of that.

Thanks in advance

0

There are 0 best solutions below