Set memory limit to 1024M