soft limit exceed issue

General support questions
Post Reply
rbmramesh
Posts: 2
Joined: 2021/06/24 09:40:57

soft limit exceed issue

Post by rbmramesh » 2021/07/05 17:33:12

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

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: soft limit exceed issue

Post by jlehtone » 2021/07/05 17:52:32

pam limits are tuned by adding *.conf files to /etc/security/limits.d/

Code: Select all

man pam_limits
man limits.conf
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?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: soft limit exceed issue

Post by TrevorH » 2021/07/05 19:37:40

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

Matty-uk
Posts: 4
Joined: 2014/12/30 22:08:46

Re: soft limit exceed issue

Post by Matty-uk » 2021/07/08 11:04:13

I'm researching this exact same error message at the moment.

I'm seeing the error in my Puppet reports.

Matty-uk
Posts: 4
Joined: 2014/12/30 22:08:46

Re: soft limit exceed issue

Post by Matty-uk » 2021/07/08 11:37:09

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

Post Reply