Re: [PHP4BETA] (very) long running loose memory with recent Zend. with testcase!

From: Date: Fri, 25 Feb 2000 18:29:11 +0000
Subject: Re: [PHP4BETA] (very) long running loose memory with recent Zend. with testcase!
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-10981@lists.php.net to get a copy of this message
On Fri, Feb 25, 2000 at 07:56:04PM +0200, Zeev Suraski wrote: > Yes, I could. It's fixed now - thanks! i think we need to check all occurances of sizeof([zp]val) and sizeof(HashTable) to make sure that we don't use emalloc for them if they are passed back to Zend somehow, right? eg: ext/com/COM.c: pval_arg->value.obj.properties = (HashTable *) emalloc(sizeof(HashTable)); seems like a possible grow-factor to me? > > Zeev > > > On Fri, 25 Feb 2000 thies@digicol.de wrote: > > > On Fri, Feb 25, 2000 at 07:04:27PM +0200, Zeev Suraski wrote: > > > It doesn't grow at all for me... > > > > if you configure with --diable-debug it will > > > > tried it on the latest cvs (Zend, php4) > > > > configure; make ; ./php leak.php // -> stable > > > > configure --diable-debug; make ; ./php leak.php // -> grows *fast* > > > > hop you can see it now... > > > > tc > > > > > > > > On Fri, 25 Feb 2000 thies@digicol.de wrote: > > > > > > > > > > > another 10-liner! > > > > > > > > this shows php "growing" :-) > > > > > > > > On Fri, Feb 25, 2000 at 05:44:02PM +0100, thies@digicol.de wrote: > > > > > > > > > > forgot to attach > > > > > > > > > > On Fri, Feb 25, 2000 at 05:43:26PM +0100, thies@digicol.de wrote: > > > > > > i have a few scripts that run days & month - they used to > > > > > > work just fine with php4/zend but recently (not sure how long > > > > > > - maybe some weeks) they started to "eat" ram. > > > > > > > > > > > > those leaks will nob be reported when php ends (so they are > > > > > > still in one of the garbage lists). > > > > > > > > > > > > this is starting to cause me some headache - > > > > > > > > > > > > the attached purify dump was generated by the cgi version > > > > > > (added a return statement before php_header() in cgi_main.c > > > > > > function main()) - so it contains far a lot of leaks who are > > > > > > not really leaks. > > > > > > > > > > > > zeev, andi could you please have a look and check if you can > > > > > > see what's causing the php-process to grow? i'm under > > > > > > the > > > > > > impression that returning from a function does not free all the > > > > > > memory it should. > > > > > > > > > > > > btw: the script is a big-loop that handles file&db operation > > > > > > the main loop ran 76 times. > > > > > > > > > > > > thanx, > > > > > > tc > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > Thies C. Arntzen "One Big-Mac, Small Fries and a > > > > > > Coke!" > > > > > > Digital Collections Phone +49 40 235350 Fax +49 40 > > > > > > 23535180 > > > > > > Hammerbrookstr. 93 20097 Hamburg / > > > > > > Germany > > > > > > > > > > > > -- > > > > > > PHP 4.0 Beta Mailing List > > > > > > <http://www.php.net/version4/> > > > > > > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > > > > > > For additional commands, e-mail: php4beta-help@lists.php.net > > > > > > To contact the list administrators, e-mail: > > > > > > php4beta-admin@lists.php.net > > > > > > > > > > > > > > > > -- > > > > > > > > > > Thies C. Arntzen "One Big-Mac, Small Fries and a > > > > > Coke!" > > > > > Digital Collections Phone +49 40 235350 Fax +49 40 23535180 > > > > > Hammerbrookstr. 93 20097 Hamburg / Germany > > > > > > > > > > > > > -- > > > > > PHP 4.0 Beta Mailing List > > > > > <http://www.php.net/version4/> > > > > > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > > > > > For additional commands, e-mail: php4beta-help@lists.php.net > > > > > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > > > > > > > > > > > > > > -- > > > Zeev Suraski <zeev@zend.com> > > > http://www.zend.com/ > > > > > > > > > -- > > > PHP 4.0 Beta Mailing List > > > <http://www.php.net/version4/> > > > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > > > For additional commands, e-mail: php4beta-help@lists.php.net > > > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > > > > > > > > > -- > Zeev Suraski <zeev@zend.com> > http://www.zend.com/ > -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#10981) next »