RLIMIT_NPROC Question
Posted: Thu Feb 03, 2022 7:12 am
Greetings...
I've looked over in this forum some of the existing NPROC issues and saw a mix of "Dev say it can safely be ignored due to wrong calcs" to others that seem to move over to executing SQL commands/tunings. With that said, my question is that with the following message in the /var/log/messages, once I added the line below into the "/etc/systemd/system/multi-user.target.wants/nagios.service" for LimitNPROC=xyz, the messages no longer are displaying.
My concern is that its only taking as an "systemd" setting and not the /etc/security/limits.d/20-nproc. Can someone confirm that this is the proper place fo the setting and will future XI upgrades overwite this file and loose the value? I speculate that it would. Thoughts?
message:
Feb 2 15:06:15 ch-nagios-p02 nagios: WARNING: RLIMIT_NPROC is 31192, total max estimated processes is 33804! You should increase your limits (ulimit -u, or limits.conf)
setting:
[Service]
LimitNPROC=46080
I've looked over in this forum some of the existing NPROC issues and saw a mix of "Dev say it can safely be ignored due to wrong calcs" to others that seem to move over to executing SQL commands/tunings. With that said, my question is that with the following message in the /var/log/messages, once I added the line below into the "/etc/systemd/system/multi-user.target.wants/nagios.service" for LimitNPROC=xyz, the messages no longer are displaying.
My concern is that its only taking as an "systemd" setting and not the /etc/security/limits.d/20-nproc. Can someone confirm that this is the proper place fo the setting and will future XI upgrades overwite this file and loose the value? I speculate that it would. Thoughts?
message:
Feb 2 15:06:15 ch-nagios-p02 nagios: WARNING: RLIMIT_NPROC is 31192, total max estimated processes is 33804! You should increase your limits (ulimit -u, or limits.conf)
setting:
[Service]
LimitNPROC=46080