My apache server has been gobbling up the memory recently. ... Any advice on figuring out which script is misbehaving?
Backtrack. Look over diffs of what you changed most recently. Here's where the effort of putting everything under source-code control (e.g., with CVS) pays off.