How to permanently change Ulimit Settings
Red Hat Enterprise Linux Server release 7.5
Please i need help on Redhat 7 server, how to permanently change these values ( open files = ulimit -n ); (user processes = ulimit -u );
(data segment size = ulimit -d ); ( default process data size = soft limit ) and (maximum process data size = hard limit ).
For example:
I want to set Data seg size at 1073741824 so after rebooting the server,
if i type # ulimit -d the result will be 1073741824
Responses
Have you checked these Red Hat articles https://access.redhat.com/solutions/61334
To understand about soft and hard limits, https://access.redhat.com/solutions/384633
Hi Soumya
Create a file labeled 99-grid-oracle-limits.conf within /etc/security/limits.d/ as follows:
touch /etc/security/limits.d/99-grid-oracle-limits.confNOTE: The reason that the /etc/security/limits.conf file is not directly modified is due to the order in which limit files are read in the system. After reading the /etc/security/limits.conf file, files within the /etc/security/limits.d/ directory are read. If two files contain the same entry, the entry read last takes precedence. For more information visit Red Hat Article: “What order are the limit files in the limits.d directory read in?16 Within the /etc/security/limits.d/99-grid-oracle-limits.conf file, add the following soft and hard limits for the oracle and grid user:
oracle soft nproc 16384 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240 oracle hard stack 32768 grid soft nproc 16384 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 grid soft stack 10240 grid hard stack 32768
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
