Closed
Description
- NodeJS: 8.9.0:
- OS: CentOS Linux release 7.3.1611 (Core):
- Scope: runtime:
I'm trying to solve a memory leak in my NodeJS app for a long time now. The strange thing is that I have several completely different NodeJS apps on my server and they all leak memory. Their RSS grows indefinitely over time.
- My main app. Its based on hapijs 16.6.2. Its a REST web server that also implements chat using nes 6.4.3 (based ws on 1.1.4)
- An SSR server based on express 4.15.5
- PM2: KM Agent
- PM2 v2.6.1: God
My attempts to find the issue concentrate on the main app. Here is what I did:
- Took many heap dumps: The heap seems stable
- Upgraded NodeJS: the leak was originally observed on NodeJS 6.11.2. An upgrade to 8.9.0 slowed down the leak a bit. It takes the app ~20% more time to reach 1G.
- Tried to run the app without PM2 or cluster mode. The leak still occurs
- Tried to disable THP: the leak still occurs
- Tried to reproduce the leak on staging with not luck
At this point I'm out of ideas what to do next.
Can any of you experts offer a good advise?
Metadata
Metadata
Assignees
Labels
No labels