hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

HHVM memory leaks monitoring guide

Open nowak-ninja opened this issue 12 years ago • 4 comments

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 ?

nowak-ninja avatar Feb 05 '14 15:02 nowak-ninja

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

karpa13a avatar Feb 05 '14 15:02 karpa13a

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.

scannell avatar Feb 05 '14 15:02 scannell

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?

DirtyHerri avatar Apr 29 '14 20:04 DirtyHerri

Not currently an issue.

Orvid avatar Mar 16 '16 00:03 Orvid