"Your first course of action is to increase your memory limit" - No. First thing you do is baseline your server and figure out how much max memory you want to allocate to PHP given the maximum that can be used from the other processes. OP's advice is a recipe for oom'ing your VPS. Also if there are more developers, hiding the memory allocation in code instead of setting file is going to be fun.