Set ulimits before starting app.