Re: Inform socket overflow issue
Raja <[email protected]> Mon, 8 Jun 2026 19:10:36 -0500
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
--===============3134805526714679826== Content-Type: multipart/alternative; boundary=Apple-Mail-E561F7B3-E614-45DD-B103-E2BE45217CD0 Content-Transfer-Encoding: 7bit --Apple-Mail-E561F7B3-E614-45DD-B103-E2BE45217CD0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html class=3D"apple-mail-supports-explicit-dark-mode"><head><meta http-equi= v=3D"content-type" content=3D"text/html; charset=3Dutf-8"></head><body dir=3D= "auto"><br id=3D"lineBreakAtBeginningOfSignature"><div dir=3D"ltr">Hi, = </div><div dir=3D"ltr">Never mind. I am able to solve it. It was in the cust= om code. </div><div dir=3D"ltr">Thanks. </div><div dir=3D"ltr"><br= ><blockquote type=3D"cite">On Jun 4, 2026, at 5:14=E2=80=AFPM, raja vankam &= lt;[email protected]> wrote:<br><br></blockquote></div><blockquote ty= pe=3D"cite"><div dir=3D"ltr">=EF=BB=BF<div dir=3D"ltr">Hi,<div>I am seeing a= n issue with net-SNMP-5.9.1 configured to send informs where I get an error t= hat maximum sockets 1024 are opened and no more files can be opened.</div><d= iv>I even tried net-SNMP-5.9.5.2 as well.</div><div><br></div><div>This issue surfaces after= a time frame of about 240 days with 4 Informs every day. To accelerate= the issue, I configured it to send informs every 10 sec with a retry of 1 m= in. I see an error after about 2 hours of run time.</div><div>I did run a tc= pdump command during the testing to confirm I receive acknowledgements from t= he trap receiver. There are occasional missed acknowledgements and I see a r= etry with a successful acknowledgement. watch -n 1 "ls /proc/<PID>= ;/fd | wc -l" gives output as 1024 which is the default socket limit in our L= inux.</div><div><br></div><div>I tried SNMP GET for every 5 sec with no issu= e in the number of sockets. So GETs are not a problem.</div><div><br></div><= div>Errors I see are:<br>/proc/stat: Too many open files<br>interface_linux:= cannot open /proc/net/dev: Too many open files<br>interface_linux: cannot o= pen /proc/net/dev: Too many open files<br>/proc/stat: Too many open files<br= >interface_linux: cannot open /proc/net/dev: Too many open files</div><div><= br></div><div>Agent configuration:</div><div>compiled for V2C agent</div><di= v>Agent is generating Informs from a posix thread that is actively waiting f= or the events.</div><div>send_v2trap() is used to generate Informs.</div><di= v><br></div><div>snmpd.conf file: (retry count is 72, interval is 1 min)</di= v><div>rwcommunity private</div><div>trapsess -v 2c -Ci -c tech -r 72 -t 60 <= a href=3D"http://192.168.1.100:162">192.168.1.100:162</a></div><div><br></di= v><div>Any inputs in this regard are greatly appreciated.</div><div><br></di= v><div>Regards,</div><div>Raj.</div><div><br></div><div><br></div></div> </div></blockquote></body></html>= --Apple-Mail-E561F7B3-E614-45DD-B103-E2BE45217CD0-- --===============3134805526714679826== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3134805526714679826== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users --===============3134805526714679826==--