Setting Resource Limits on Ubuntu

While you can use Warden to set resource limits automatically, you may want to set limits manually.

Rather than relying on Warden to set resource limits automatically using ulimit, you can use the following procedure to set the limits manually.

  1. Edit /etc/security/limits.conf and add a line to set the resource limits. For example, set the resource limits:
    <MAPR_USER> - nofile 65536 
    <MAPR_USER> - nproc 64000
  2. Edit /etc/pam.d/su and uncomment the following line.
    session required
  3. Use ulimit to verify settings.
  4. Reboot the system.
  5. Run the following command as the MapR user (not root) at a command line: ulimit -n