Auto restart server if virtual memory is too low
- by Sukhjinder Singh
There are quite number of software running on my server: httpd, varnish, mysql, memcache, java..
Each of them is using a part of the virtual memory and varnish was configured to be allocated 3GB of memory to run.
Due to high traffic load which is 100K, our server ran out of memory and oom-killer is invoked. We've to reboot the server.
We have…