performance

  • Measure OPcache memory utilization from the command line

  • A memory leak in a long-running Symfony messenger process

    A Symfony Messenger worker daemon processing imported spreadsheets slowly grew from 64MB to 1.2GB of RAM over six hours before being terminated by the Linux OOM killer. Doctrine’s…

  • A PHP 8.4 property hook on a datetime calculation

    Replacing virtual getter methods with PHP 8.4 property hooks makes data transfer objects and read models remarkably expressive. The trap is placing a dynamic instantiation inside a hook…

  • A profile after a year of property hooks

    A profile taken specifically to check whether a year of converting methods to properties had a cumulative cost. A diffuse cost spread across two hundred call sites is…

  • The partition that could finally be dropped

    A partition where every remaining row was past its retention, eight months after the classification work. The partition scheme from 2023 aligns with the retention classes only at…

  • A cold start after a failover

    A promoted standby serving traffic with an empty cache and a cold opcode cache, measured during a drill. The warm-up script existed and was bound to the wrong…

  • Eleven indexes that existed only for reporting

    Indexes on production tables serving queries that no user request ever makes. An index that serves only reporting is paying a write cost on every insert to make…

  • The reporting database that is not a replica

    A read replica serving reports, and reports that want a different schema. Eleven indexes on production tables that exist only for reporting.

  • The stylesheet that finally got a second maintainer

    2,100 lines that one person could change, and the year spent fixing that. Every stylesheet change routed through one person for four years.

  • A report that got slower because the data grew

    A query that was fine at four hundred thousand rows, acceptable at four million, and unusable at twelve. A query whose cost grows with the data is not…