when overstep memory limit, properly show the min mem needed