Revert "Remove ulimit settings."

This reverts commit ec3b85ef609ccf70cf89de426c3d1da67d8592cf.