Set limits for mongod and mongos processes as recommended in the docs http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings