I have an app that connects a testing server (offline) to about 100 clients connected to it (Connected via LAN localhost:3000)
Sometimes, I get this error on my console and the app crashes
I have monitored RAM usage when it’s working with no issues, it sits around 200-800 MBs, but when the server reloads and I get the error above, it pushes RAM usage to about 1.5GB before it crashes displaying the error above and restarts and does it all over again.
I have increased the RAM allowance to 4GB by adding
--max_old_space_size=4096 Then to 8 and even to 16GB, whatever the limit is, the usage keeps increasing to it until it crashes. Also, my Meteor is updated to the latest version (1.6.1)
The only way to get it back up is to disconnect all clients and reconnect them. Which indicates, one of the clients is causing a Memory Leak (Frozen connection or similar).
In terms of Meteor and NodeJS, as I’m a bit new, what are the best ways to deal with leaks or deal with this?
I appreciate the time taken to help.