Local Agent : "too many open files" #64
-
I'm trying to follow the basic install instructions on the website, compiled alumet-local-agent, and when I try to run it, I get a bunch of
Alays ending with
The number of created and failed sources vary, but the difference (i.e. number of sources that were successfully created) is always 331. I tried changing the user file limit in /etc/sysctl.conf to 1024, I also tried I'm on Ubuntu 22.04.5 Does anyone have any idea what could cause that ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello, You could first check:
Did you try to log out and log in back or reboot your system ? Can you share what you changed in the **/etc/sysctl.conf ** file ? |
Beta Was this translation helpful? Give feedback.
-
My system wide limit is 9223372036854775807, my shell side limit was 1024 and I increased it to 10000 using ulimit. What I added in sysctl.conf is |
Beta Was this translation helpful? Give feedback.
Here is the issue:
ulimit
only applies to the commands that are directly launched by your shell. Withsudo
, you create a level of indirection, and you loose the soft limit defined byulimit
. The solution is to replaceulimit
by something likeprlimit
: