Hunting down memory leaks with PHP Meminfo
summary
Shows how PHP Meminfo extension and profilers like Blackfire.io or Memprof reveal concrete causes: dumps that list class instance counts and object relations expose thousands of retained objects and cyclic references. Demonstrates reading JSON-like dumps, tracing a reference chain from an array entry or class member to the leaking object, and fixing it by breaking references or using weak references. Measures show increased GC CPU and degraded throughput when leaks accumulate across long‑running processes.
AI-written summary · about
chapters (9)
- 0:00Memory management in PHP
- 3:14Memory leaks in PHP
- 6:28Circular references impact
- 9:18PHP garbage collector
- 12:10Detecting leaks with tools
- 14:21Solving memory leaks
- 17:18Analyzing leaks with Meminfo
- 20:11Best practices to avoid leaks
- 21:55Conclusion
related talks
36mMemory Leaks in PHP: Detection, Prevention, Tooling
33mMemory Profiling for Mere Mortals
50mPerformance optimization: how do I go about it?
51mHelp, I'm Running Out of Memory!
52mPerformance optimisation: how do I go about it?
42mDebugging Ruby
32mMastering JVM Memory Troubleshooting - From OutOfMemoryErrors to Leaks
47mPerformance optimisation: how do I go about it?
