Profilers like or Memprof give you the functions that use or free memory. But knowing what is inside the PHP memory allows to better understand the origins of memory leaks. The opensource PHP Meminfo extension gives you a synthetic view of the number of class instances in memory, the full list of objects and other structures, as well as the relations between them (class member, item in an array, etc…). Having access to these relationships information allows understanding why an item has not been removed from memory by following the references that are still pointing to it. This talk will start by explaining how the memory is managed in PHP (ref counter, cyclic reference garbage collector), as well as the effects of a memory leak on your application performances. Then we will analyze some memory leak case studies by using PHP Meminfo and how to fix them.


Please login to leave a comment

Rated 4

Samuele Lilli at 17:34 on 10 May 2019

Pretty nice insights for a 25 minutes talk.

A cool drive-in into a quite new (for me!) matter... Insightful.

Very useful talk with very clear presentation, I'd just work a little on the pronuciation, though.

Brilliant talk! Personally, I think one of the best talks so far.

Very nice insights, very well explained and the tool demonstration was also nice & interesting.

Great explanation of why memory leaks happen. Clear examples, great slides. A talk that everyone could do with watching.