Help Center/ Elastic Cloud Server/ Troubleshooting/ Linux ECS Issues/ Why Do the Modifications to /etc/security/limits.conf Not Take Effect After the ECS Restarts?
Updated on 2023-03-03 GMT+08:00

Why Do the Modifications to /etc/security/limits.conf Not Take Effect After the ECS Restarts?

Symptom

Modifications to the /etc/security/limits.conf file become invalid after the ECS restarts.

Possible Causes

In Linux, file /etc/security/limits.conf and directory /etc/security/limits.d/ are used to limit the amount of various system resources available to a process. The configuration files in the /etc/security/limits.d/ directory take priority over the settings in the /etc/security/limits.conf file.

If the modifications to file /etc/security/limits.conf become invalid after the ECS restarts, the modifications may be overwritten by the corresponding configurations in files located in directory etc/security/limits.d/.

Solution

Modify the files located in directory etc/security/limits.d/ or modify file /etc/security/limits.conf.

If the modifications to file /etc/security/limits.conf do not take effect, check the corresponding configurations in files located in the etc/security/limits.d/ directory.