Been working on a command line script that takes days to finish execution (yes, DAYS).  Unfortunately, it had a healthy flow of memory leaking. It would fatally crash with your typical “out of memory” error. I spent hours debugging the potential source – free’d results of mysql queries, unset variables, you name it I tried [...]