HHVM memory leaks monitoring guide
I have found this guide: https://github.com/facebook/hhvm/blob/master/hphp/doc/debug.leak but it seems to be outdated. Is there any solution for 2.4.0-dev ?
simple way, if you don't know hhvm internals - repro code + env (distrib, httpd mode or fastcgi/nginx configs) ab/siege 1kk requests
or, build debug hhvm, attack it with ab/siege and kill it with sigbus) then, gdb and see allocations) or2 debug build, run under valgrind, attack it with ab/siege and post results here
We don't have anything newer to share documentation-wise, but @karpa13a is correct for good ways to start. Patches for fixing leaks are always welcome, too.
May be of interrest, maybe not:
Just checked htop on my box running Wordpress 4 on HHVM/NGIX (a blog with nearly no visitors).
- RES: 2.x GB
Restartet HHVM:
- RES: 1xx MB
Every request via browser adds 1-3 MB (requesting same ressource)
Executing "ab -n 500 -c 100 http://mysite.com/" locally doesn't effect memory at all (pushed -n up to 50000... doesn't matter)
Does this make any sense?
Not currently an issue.