set es max memory to 1024