Package: php5-snmp
Version: 5.2.0-8+etch3

it seems that each [successful] execution of snmpget leaks memory. i
hope this time it's not false alert - code seems to be straightforward
and result [ after few h of execution ] - obvious.

execution of following script:
<?
       set_time_limit(0);
       error_reporting(E_ALL);
       snmp_set_valueretrieval(1);

       while(1==1){
               $x = snmpget( "address_of_server" , "public" ,
"hrProcessorLoad.1");
               echo "$x\n";
       }
?>

ends with:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 2 bytes) in /root/mem/y.php on line 7

growth of memory usage can be seen on ps faux , it seems that php
actually allocates much more memory then expected 8MB.

--
regards,
Pawel Kudzia / .PaKud / http://pqd.one.pl


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to