Setting Resource Limits on CentOS/RedHat/Oracle Linux
While you can use Warden to automatically set resource limits, you may want to set limits manually.
About this task
Rather than relying on Warden to set resource file-access limits automatically using
                    ulimit, you can use the following procedure to set the limits
                manually.
Procedure
- 
                Edit 
/etc/security/limits.confand add a line to set the resource limits. For example, set the resource limits to 65536.<MAPR_USER> - nofile 65536 - 
                Edit 
/etc/security/limits.d/90-nproc.confto add a similar line.<MAPR_USER> - nproc 64000 - 
                Check that the 
/etc/pam.d/sufile contains the following settings:#%PAM-1.0 auth sufficient pam_rootok.so # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. #auth required pam_wheel.so use_uid auth include system-auth account sufficient pam_succeed_if.so uid = 0 use_uid quiet account include system-auth password include system-auth session include system-auth session required pam_limits.so session optional pam_xauth.so - 
                Use 
ulimitto verify settings. - Reboot the system.
 - 
                Run the following command as the 
mapruser (not root) at a command line:ulimit -n