setting memory usage limit to 1 gig