I have a memory leak in my express application. The RSS memory starts at around 80Mb and grows slowly over time to reach around 2-3Gb over a couple of days. I have tried using the --inspect flag to start the process and debug in chrome inspector but not able to find out the exact issue. The Object allocation over a period of time is not that high in this case. The highest memory consumption is by strings as one can see in the attached screenshot. Can anyone point me in the right direction to fix this leak?
I have also attached the RSS graph. The decline in memory is due to shutting down the server.
Platform: Linux - Ubuntu 18.04.5