|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26249 snmpget doesn't free memory
Submitted: 2003-11-14 04:58 UTC Modified: 2003-11-21 21:24 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dacol dot jeremy at caramail dot com Assigned:
Status: Not a bug Package: SNMP related
PHP Version: 4.3.3 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dacol dot jeremy at caramail dot com
New email:
PHP Version: OS:


 [2003-11-14 04:58 UTC] dacol dot jeremy at caramail dot com

I use a lot of snmpget (more then 300) each 5 minutes.
snmpget works, it closes session. ( i read all bug reports on snmpget) but it use memory which it doesn't free.

i look, with the "top" command, the ressources used by my script and every 5 minutes it uses 0.3% more...

i don't understand why????
maybe a bug in my snmp.c but.....

i use ucd-snmp package with php 4.3.2 and i use my script with php command.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-17 03:06 UTC] response dot sorry at notremember dot pass

thank you for your answer.

can i only copy this on my existing php files or do i have to recompile all?
in fact what i have to do with this file?

and sorry for the mistake i work with:
apache 1.3.28
php 4.3.3
ucd-snmp 4.2.2
on linux RH 7.1
 [2003-11-17 05:40 UTC] dacol dot jeremy at caramail dot com
i have copied the CVS on my php files and replace it.
but it doesn't work each time i use snmpget function it takes memory which it doesn't free after a response.
in fact each 100 snmpget use 0.1% of my memory.
it's really the snmpget function which doesn't work.
 [2003-11-17 17:52 UTC]
Update your ?ber-old ucd-snmp to the latest net-snmp version.
Then reopen if you still experience leaks which you can trace to happen in PHP code (not in the net-snmp)

 [2003-11-18 06:58 UTC] dacol dot jeremy at caramail dot com

i don't know how upgrad my php files with the latest version...

i up my old ucd-snmp version to net-snmp 5.1 and my bug still happened.

please tell me exactly what to do with php4-STABLE-latest.tar.gz....

the command, all things tou can....

i am really sorry but i search on web and i find nothing on it.
 [2003-11-18 09:58 UTC] dacol dot jeremy at caramail dot com
i test a script with:
and see with "top" command the memory used : 0.7% all time.
it doesn't depend on the number of snmpget so i think it's a php problem.
 [2003-11-18 15:11 UTC]
PHP uses memory, there's no bug here. (0.7% is nothing)

 [2003-11-19 02:42 UTC] dacol dot jeremy at caramail dot com
excuse me but do you read all the comments....

the bug is:

when i use a lot of snmpget (the PHP function ), the memory used grow but never fall.
it use 0.1% each 100 snmpget (the PHP function ), and it is a lot when you want that your script run "at vitaem".

and i explain when i use the system function of PHP with snmpget, like in my last comment, PHP use 2% and snmpget use 1%.

so i think it is a PHP problem...

and one more time could you explian me what to do with the file please.
 [2003-11-19 18:28 UTC]
You download that package, configure and install it on your test server to see if the 'bug' still happens with the most recent PHP version.

You have to update PHP to make sure you really are using the latest net-snmp version you installed..

 [2003-11-20 04:34 UTC] dacol dot jeremy at caramail dot com
i have :
rpm files installed openssl-0.9.6-3 and devel one too
with files in /usr/include/openssl
- installed net-snmp 5.1 
configure: ./configure --with-opennssl=/usr
make && make install 
- installed php4-stable of 2003/11/19 06h30
configure --with-snmp=/usr/local --with-openssl=/usr --with-apache=../apache 
and during the make && make install i have many errors with :
"undefined reference to all SSL_.....
i don't understand...
what i have to do?
 [2003-11-21 21:24 UTC]
Please ask support questions elsewhere. There is no bug in PHP in this, the snmp lib leaks itself.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Aug 12 10:01:25 2020 UTC