note 40122 added to function.snmpget
| From: | JohannGlaser at rn2 dot php dot net | Date: | Sun, 22 Feb 2004 17:36:00 +0000 |
| Subject: | note 40122 added to function.snmpget | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65541@lists.php.net to get a copy of this message | ||
It seems that for each snmpget() its own socket() will be opened. This is not closed after snmpget()
finishes. Neither existing sockets are reused by subsequent snmpget() calls.
When querying a few switches with lots of ports the maximum file descriptor count of Apache is
exhausted. Thus no more snmpget() are possible. Additionaly no more files can be read by this
particular Apache process. Neither the PHP file, any include files nor any other files (like a .css
file, ...).
This probably explains the observation of tkjode at phalnet dot com. Different to his case is that
I'm using Linux.
----
Manual Page -- http://www.php.net/manual/en/function.snmpget.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40122
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40122&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40122&report=yes
Search -- http://master.php.net/manage/user-notes.php