the "purge" command used to be available, but I don't see it recently. (devtools maybe?)
It would grind the computer to an absolute halt while it ran, but you'd see a huge part of the yellow and even a bit of the red clean up in Activity Monitor. Saves a reboot a lot of the time to reclaim leaks etc.
Is there an alternative available currently? I'm running 10.6.8 (yes really)
purge runs right now but it errors out on me
apple:~ virtual1 $ purge
WARNING: Could not determine processor information.
WARNING: Could not determine memory controller information.
WARNING: Could not determine Operating System information.
(sudo doesn't help)