01-08-2019 07:51 AM
CentOS 7
NSO 4.5.5.1
I am seeing the following when trying to perform a check-sync or sync-from on several hundred devices, which causes NSO to crash:
out of file descriptors for accept() – process limit reached
System file limits are as follows:
cat /proc/sys/fs/file-max
100000
ulimit -a
open files (-n) 16384
The number of open files never seems to go above ~5000 before the crash occurs. Has anyone else seen this? Perhaps there are other OS or Java parameters that need adjusting?
cat /proc/sys/fs/file-nr
5005 0 100000
Solved! Go to Solution.
01-08-2019 02:24 PM
Here is a couple of resources:
and
- Need to break the hard limit for the number of FD for a process. This can be done in two ways 1. OS Level: a. In order to know how many file descriptors are available at the OS Level (normally it is 1024), please execute: ulimit -a | grep 'open files' b. For increasing FD in system level you will need to add the following lines to the /etc/security/limits.conf file: * soft nofile <value> * hard nofile <value> root soft nofile <value> root hard nofile <value> e.g * soft nofile 32000 * hard nofile 32000 root soft nofile 32000 root hard nofile 32000 c. To verify this you will have to logout from your current session, connect again and execute the command given above. (ulimit -a | grep 'open files') 2. NSO Level: a. In order to know how many file descriptors are available to NSO, please execute: ps -ef | grep "fd" OR ps -aef | grep ncs.smp b. By default even these will be 1024 and in order to change this you will need to perform the following steps: * Stop NSO if it is running. * Open the /etc/init.d/ncs file and add the new ulimit value below the “heart” argument <Other Configurations> heart="--heart" ulimit -n <valu
Let me know if this information was helpful. It would seem that the issue is down to the OS level.
01-08-2019 02:24 PM
Here is a couple of resources:
and
- Need to break the hard limit for the number of FD for a process. This can be done in two ways 1. OS Level: a. In order to know how many file descriptors are available at the OS Level (normally it is 1024), please execute: ulimit -a | grep 'open files' b. For increasing FD in system level you will need to add the following lines to the /etc/security/limits.conf file: * soft nofile <value> * hard nofile <value> root soft nofile <value> root hard nofile <value> e.g * soft nofile 32000 * hard nofile 32000 root soft nofile 32000 root hard nofile 32000 c. To verify this you will have to logout from your current session, connect again and execute the command given above. (ulimit -a | grep 'open files') 2. NSO Level: a. In order to know how many file descriptors are available to NSO, please execute: ps -ef | grep "fd" OR ps -aef | grep ncs.smp b. By default even these will be 1024 and in order to change this you will need to perform the following steps: * Stop NSO if it is running. * Open the /etc/init.d/ncs file and add the new ulimit value below the “heart” argument <Other Configurations> heart="--heart" ulimit -n <valu
Let me know if this information was helpful. It would seem that the issue is down to the OS level.
01-09-2019 06:54 AM
01-09-2019 10:08 AM
01-08-2019 02:26 PM
05-23-2019 01:51 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide