added option to dump object space to file before kill for memory limit