<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: out of file descriptors for accept() in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3775516#M3133</link>
    <description>Also, what NED are you using? And versions?</description>
    <pubDate>Tue, 08 Jan 2019 22:26:54 GMT</pubDate>
    <dc:creator>joepak</dc:creator>
    <dc:date>2019-01-08T22:26:54Z</dc:date>
    <item>
      <title>out of file descriptors for accept()</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3775202#M3126</link>
      <description>&lt;P&gt;CentOS 7&lt;BR /&gt; NSO 4.5.5.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am seeing the following when trying to perform a check-sync or sync-from on several hundred devices, which causes NSO to crash:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;out of file descriptors for accept() – process limit reached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System file limits are as follows:&lt;/P&gt;
&lt;P&gt;cat /proc/sys/fs/file-max&lt;/P&gt;
&lt;P&gt;100000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ulimit -a&lt;/P&gt;
&lt;P&gt;open files (-n) 16384&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cat /proc/sys/fs/file-nr&lt;/P&gt;
&lt;P&gt;5005 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 15:51:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3775202#M3126</guid>
      <dc:creator>ryan-hitch</dc:creator>
      <dc:date>2019-01-08T15:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: out of file descriptors for accept()</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3775511#M3132</link>
      <description>&lt;P&gt;Here is a couple of resources:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://techzone.cisco.com/t5/Network-Services-Orchestrator/File-Descriptor-Limits-for-NCS/ta-p/1238611" target="_blank"&gt;https://techzone.cisco.com/t5/Network-Services-Orchestrator/File-Descriptor-Limits-for-NCS/ta-p/1238611&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="con-NoMargin hist-break-word"&gt;- 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 &amp;lt;value&amp;gt;
			*    hard nofile &amp;lt;value&amp;gt;
				root soft nofile &amp;lt;value&amp;gt;
				root hard nofile &amp;lt;value&amp;gt;

			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

																&amp;lt;Other Configurations&amp;gt;
																heart="--heart"
																ulimit -n &amp;lt;valu
&lt;/PRE&gt;
&lt;P&gt;Let me know if this information was helpful. It would seem that the issue is down to the OS level.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 22:24:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3775511#M3132</guid>
      <dc:creator>joepak</dc:creator>
      <dc:date>2019-01-08T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: out of file descriptors for accept()</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3775516#M3133</link>
      <description>Also, what NED are you using? And versions?</description>
      <pubDate>Tue, 08 Jan 2019 22:26:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3775516#M3133</guid>
      <dc:creator>joepak</dc:creator>
      <dc:date>2019-01-08T22:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: out of file descriptors for accept()</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3776128#M3147</link>
      <description>Thanks! I do not have access to &lt;A href="https://techzone.cisco.com" target="_blank"&gt;https://techzone.cisco.com&lt;/A&gt; - perhaps its a Cisco internal site? The info is great though, I had increased the OS level limits, but did not know that a change to /etc/init.d/ncs was also required without this document.</description>
      <pubDate>Wed, 09 Jan 2019 14:54:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3776128#M3147</guid>
      <dc:creator>ryan-hitch</dc:creator>
      <dc:date>2019-01-09T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: out of file descriptors for accept()</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3776297#M3150</link>
      <description>My apologies as that link is in fact, internal to us. But it basically shares similar info &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'm glad it was helpful!&lt;BR /&gt;&lt;BR /&gt;thank you for rating this post!</description>
      <pubDate>Wed, 09 Jan 2019 18:08:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3776297#M3150</guid>
      <dc:creator>joepak</dc:creator>
      <dc:date>2019-01-09T18:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: out of file descriptors for accept()</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3861962#M3817</link>
      <description>&lt;LI-SPOILER&gt;Hi Joey,&lt;BR /&gt;&lt;BR /&gt;I did not find that file in the path your posted but found in&amp;nbsp;/etc/security/limits.conf .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this the right file, and what is the max number that is safe to reconfigure with?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Should we incrementally test to see and are there specific increments we need to adhere to?&lt;BR /&gt;&lt;BR /&gt;# - nofile - max number of open file descriptors&lt;/LI-SPOILER&gt;</description>
      <pubDate>Thu, 23 May 2019 20:51:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/out-of-file-descriptors-for-accept/m-p/3861962#M3817</guid>
      <dc:creator>rodriry06</dc:creator>
      <dc:date>2019-05-23T20:51:28Z</dc:date>
    </item>
  </channel>
</rss>

