Here is the line that I had to remove inside my application that apparently was generating the memory leak: ini_set("xdebug.var_display_max_data", "-1"); Using strace to debug PHP applications may seem like an extreme measure, but given the ease of use, it can definitely be one of the tools to use when looking for nasty bugs like this one.