Anyone have an idea how I could find out during script execution how much memory PHP is actually using?
I'm building on a system that hasn't got much headroom, so I want to try and clear out redundant stuff. Problem is, the cleanup is a slowish process, so I only want to do it if I have to - hence the wish to look at current memory consumption before doing something bulky.