Search This Blog

Wednesday, November 21, 2018

Set the Linux system resource limit

Set the system resource limit by following these steps:
  1. Open the limits.conf file, which is located at /etc/security/.
  2. Find the following parameters:
    soft nofile value_of_the_parameter
    hard nofile value_of_the_parameter
  3. Change the value of these parameters to 4096:
    soft nofile 4096
    hard nofile 4096
    Note: If the parameters listed in Step 2 do not exist, add the parameters with their values, as listed in Step 3, to the limits.conf file.