In case you have try to install some Oracle software you have to setup hard and soft limits. This is done in /etc/security/limits.conf. After changing these settings, you need to logoff for these settings to take effect.
Checking for softnofiles=4096; softnofiles=1024. Failed
So even if you set your user to have soft nofile limit to your preferred value, changes did not take effect. Why?
This is for Red Hat Enterprise Linux Server 7.4, I suppose that same is in other distros.
These parameters CAN NOT be greater then value that is applied to super-user root! So if your root soft limit is 1024, then your no-seper-user cannot be grater then 1024.
How to fix this?
In limits.conf add this
root - nofile 100000
user soft file 4096
and DO NOT CLOSE YOUR SESSION BECAUSE IF THERE IS ANY ISSUE YOU WILL NOT BE ABLE TO LOG BACK IN WITH PUTTY! So just start new session and check these parameters.
Also, remember this - hard limits should be greater or equal to soft limits!
No comments:
Post a Comment