Using heuristic overcommit to fix out of memory errors