Hi Team,
I am using Centos 7 and am managing more than 100 server. From last one week i am getting following error from several server.
Warning: The directory '/var/tmp/yumdata' contains 2833 entries, which exceeds the default soft limit 1000 and may cause excessive resource consumption and degraded performance. To remove this warning set a value for `max_files` parameter or consider using an alternate method to manage large directory trees
Warning: The directory '/store/ncap' contains 1162 entries, which exceeds the default soft limit 1000 and may cause excessive resource consumption and degraded performance. To remove this warning set a value for `max_files` parameter or consider using an alternate method to manage large directory trees
Before also /store/ncap file has more than 1000 entries but now only i am getting following error.
I tried below steps but it did not work
step 1:
I added /etc/sysctl.conf
fs.file-max = 100000 (but no use i am getting same error when i run puppet agent.
Step 2:
vim /root/.bashrc
ulimit -u unlimited
The above steps also does not fix my issue.
Note: I disabled ntop.repo on last week and i started to getting above issue. I do not know will it create issue.
Please help to fix the issue
soft limit exceed issue
Re: soft limit exceed issue
pam limits are tuned by adding *.conf files to /etc/security/limits.d/
However, are you sure that this is about number of open files?
The message seems to say: this directory has too many files. That would be a property of filesystem?
Code: Select all
man pam_limits
man limits.conf
The message seems to say: this directory has too many files. That would be a property of filesystem?
Re: soft limit exceed issue
What exactly is it that is issuing these warnings?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: soft limit exceed issue
I'm researching this exact same error message at the moment.
I'm seeing the error in my Puppet reports.
I'm seeing the error in my Puppet reports.
Re: soft limit exceed issue
My error was coming from my Puppet code, namely a tidy call to a log folder. Adding max_files to my code and setting an appropriate value removed the error for me.
https://puppet.com/docs/puppet/7/types/tidy.html
https://puppet.com/docs/puppet/7/types/tidy.html