running out of memory under heavy load.  cleaning memory