When HHVM doesn't work quite right
ma.rtin.so
ma.rtin.so
We used to have to restart hhvm weekly to prevent white screens of death but no longer with 3.8+
3.8 is also 10% faster than previous versions: http://hhvm.com/blog/9803/hhvm-3-8-0
Maybe try 3.9-dev (trunk)to see if it was a bug.
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
sudo add-apt-repository "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main"
sudo apt-get update
sudo apt-get install hhvm
$hhvm --version
HipHop VM 3.8.0 (rel)
Compiler: tags/HHVM-3.8.0-0-gbb32f8d645b28561d8491870c44730b9b3f08d35
Repo schema: 74bee5d310450724cfd49245fd6c2e1e4323b10a
But Varnish does it for free out of the box ! Quick example from the documentation (https://www.varnish-cache.org/trac/wiki/BackendPolling) :
backend b0 { .host = "phk.freebsd.dk"; .probe = { .url = "/probe.cgi"; .timeout = 34 ms; .interval = 1s; .window = 10; .threshold = 8; } }
Given they've gone and written stuff to automatically restart the processes under certain conditions anyway, might as well just catch the memory leak and restart, rather than gamble with "not for production use" software in production environments.
It's not pretty, but we do what we need to do.
Why? what does supervisord have that systemd doesn't provide?
http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/sys...
I'm not sure what you mean by manage pools. Maybe you're asking how to make multiple processes? Check out unit templates, they're the ones with an '@' in them. see `man systemd.unit` for more info.
> also it requires processes to be daemonized which would make configuration a little messier.
It does not. infact, it prefers you don't. Check out the various service unit types. see `man systemd.service` or http://www.freedesktop.org/software/systemd/man/systemd.serv...