2 ms·
If your server's running Limux, it's going to kill your process with no questions asked if you run out of memory. You're better off practicing crash-only error
by astrange 13y ago
If your server's running Limux, it's going to kill your process with no questions asked if you run out of memory. You're better off practicing crash-only error recovery and having robust clients that can handle a reconnect.
HTTP is stateless already, so crash and restart all you want!
- yew 13y agoThe OOM killer is more likely to kill some other process and trash your server. Thankfully that sort of behavior has been vastly reduced since the thing was introduced, but disabling overcommit for high-reliability applications is still a reasonable course of action.
- dingaling 13y agoThe OOM killer might eventually kill something, after it thrashes the system for a few hours. I had a server last week in which swap hadn't been configured. A compilation job took all memory and the OOM started thrashing. Thankfully there's always one SSH session open but I couldn't kill anything, sync or shutdown; fork failed with insufficient memory. Left if thrashing overnight and had to power-kill it next day.