~/talk

Memory Leaks in PHP: Detection, Prevention, Tooling

TalkinRussianat PHPFest 2020 · 2020-10-23..10-24· [php, web-performance]
links:none on file
slides:none on file

Practical techniques for tracking and preventing memory leaks in PHP command-line programs and worker processes, including using memory_get_usage() with $real_usage, understanding copy-on-write behavior, and avoiding cyclic references. Demonstrates tools and patterns such as effective code decomposition, WeakReference and WeakMap, and concrete monitoring strategies for console commands and workers.

AI-written summary · about

  1. 0:00Introduction
  2. 3:37PHP memory issues 2020
  3. 10:37Symfony Console progress bar
  4. 17:31Actual allocated memory
  5. 20:21Generator data handling
  6. 22:49Cyclic references and GC
  7. 28:47Memory leaks in services
  8. 31:58WeakReference and WeakMap
  9. 32:39Memory control in workers
  10. 35:08Profiling tools
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.