Setting Resource Limits on Ubuntu

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 to 64K.
    <MAPR_USER> - nofile 64000 
    <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