Setting Resource Limits on Ubuntu



  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
    # end of pam-auth-update config
    session       required
  4. Use ulimit to verify settings.
  5. Reboot the system.