ScriptaGames / zorbio

A 3D multiplayer WebGL game
MIT License
8 stars 1 forks source link

Fix server memory issues #483

Open Jared-Sprague opened 7 years ago

Jared-Sprague commented 7 years ago

Currently the server when left running will eventually run out of system memory and start swapping. causing nodejs to throw out of memory errors and restart.

Need to figure out how to fix this. Find and fix memory leak, cronjob to restart once per day. We'll know it's fixed when it can be left running for long periods and not run out of memory.

Jared-Sprague commented 7 years ago

added cronjob to restart servers every morning at 3am

mwcz commented 7 years ago

Found an article which covers finding memory leaks in nodejs servers, and also covers monitoring.

https://hackernoon.com/the-definitive-guide-for-monitoring-node-js-applications-404feeea5951?gi=1244093710b8

Looks promising!