#19213 [Fbk->Opn]: Adabas odbc Memory leak

From: Date: Thu, 05 Sep 2002 18:12:24 +0000
Subject: #19213 [Fbk->Opn]: Adabas odbc Memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18504@lists.php.net to get a copy of this message
ID: 19213 User updated by: a.steckenborn@stebosoft.de Reported By: a.steckenborn@stebosoft.de -Status: Feedback +Status: Open Bug Type: Adabas-D related Operating System: SuSE Linux 8.0 PHP Version: 4.2.2 New Comment: is configured with --enable-debug in php.ini error_reporting = E_ALL & ~E_NOTICE report_memleaks = On in the "ERROR Log" no Error Messages are shown. I'm getting grazy with this Previous Comments: ------------------------------------------------------------------------ [2002-09-04 21:36:48] kalowsky@php.net You don't really need to report back any more memory, I believe you. Honest! Any chance you can try building with --enable-debug option and seeing if there are any told memory leaks? ------------------------------------------------------------------------ [2002-09-04 13:04:17] a.steckenborn@stebosoft.de Here you can see how the used memory grows up: Memory usage of http childs 20020904 03:00PM 26074 wwwrun 13 0 6604 6604 3644 S 0.0 1.2 0:00 httpd 26069 wwwrun 20 0 6380 6380 3624 S 0.0 1.2 0:00 httpd 26073 wwwrun 20 0 6060 6060 3476 S 0.0 1.1 0:01 httpd 26077 wwwrun 20 0 5904 5904 3436 S 0.0 1.1 0:00 httpd 26070 wwwrun 20 0 5272 5272 3616 S 0.0 1.0 0:00 httpd 26071 wwwrun 20 0 5112 5112 3632 S 0.0 0.9 0:00 httpd 26078 wwwrun 20 0 4640 4640 3472 S 0.0 0.9 0:00 httpd 26072 wwwrun 20 0 4552 4552 3616 S 0.0 0.8 0:00 httpd 26076 wwwrun 20 0 4436 4436 3464 S 0.0 0.8 0:00 httpd 26075 wwwrun 20 0 4368 4368 3432 S 0.0 0.8 0:00 httpd 26302 wwwrun 20 0 4136 4136 3416 S 0.0 0.8 0:00 httpd 26298 wwwrun 20 0 4064 4064 3420 S 0.0 0.7 0:00 httpd 26068 root 20 0 2828 2828 2620 S 0.0 0.5 0:00 httpd +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Memory usage of http childs 20020904 08:00PM 26071 wwwrun 20 0 11288 11M 3704 S 0.0 2.1 0:06 httpd 26070 wwwrun 20 0 10392 10M 3680 S 0.0 2.0 0:05 httpd 26076 wwwrun 19 0 9444 9444 3556 S 0.0 1.8 0:05 httpd 26073 wwwrun 19 0 9252 9252 3540 S 0.0 1.8 0:06 httpd 26072 wwwrun 20 0 9232 9232 3680 S 0.0 1.7 0:05 httpd 26074 wwwrun 20 0 9160 9160 3688 S 0.0 1.7 0:04 httpd 26069 wwwrun 20 0 9048 9048 3696 S 0.0 1.7 0:05 httpd 26075 wwwrun 19 0 8712 8712 3528 S 0.0 1.6 0:05 httpd 26456 wwwrun 19 0 8504 8504 3544 S 0.0 1.6 0:04 httpd 26298 wwwrun 20 0 8468 8468 3552 S 0.0 1.6 0:04 httpd 26077 wwwrun 20 0 8404 8404 3544 S 0.0 1.6 0:07 httpd 26078 wwwrun 20 0 8256 8256 3532 S 0.0 1.6 0:05 httpd 26458 wwwrun 20 0 7960 7960 3540 S 0.0 1.5 0:04 httpd 26302 wwwrun 19 0 7860 7860 3548 S 0.0 1.5 0:03 httpd 26457 wwwrun 20 0 7828 7828 3552 S 0.0 1.5 0:03 httpd 26068 root 20 0 2828 2828 2500 S 0.0 0.5 0:00 httpd result of free total used free shared buffers cached Mem: 513500 507896 5604 0 181692 176276 -/+ buffers/cache: 149928 363572 Swap: 1052248 332 1051916 Next follows tomorrow morning (German Time) rgds. Albert ------------------------------------------------------------------------ [2002-09-04 10:08:48] kalowsky@php.net Okay that default_db is a McGuffin, as that functionality isn't even enabled in PHP. It was to be, but all work has stopped on it at this time. ------------------------------------------------------------------------ [2002-09-04 08:12:31] a.steckenborn@stebosoft.de here there are my config flags: './configure' '--with-adabas=/usr/local/adabas' '--with-mysql=/usr/local/mysql' '--with-pdflib=/usr/local/pdflib/bind/c/' '--enable-dbase' '--with-db' '--with-jpeg-dir=/usr/lib/' '--with-apsx2' '--with-apsx' '--with-png-dir=/usr/lib/' '--with-zlib' '--with-apache=../apache_1.3.26' php.ini flags: In previus Version of PHP i don't have to set the odbc.default_db but with PHP4.2.2. the connection don't works without odbc.default_db /var/spool/sql/config/odbc.ini Now with PHP4.3-DEV it works without the setting again. At the moment it works a little bit better than before, but the bug is not fixed.(Memory don't grow so fast) I will copy from TOP the memory usage of the httpd childs at the moment after 6hours tomorrow at 8:00am (CET) without restarting apache and setting MaxRequestsPerChild 0 and post it here. So it's better to see how the memory grows up. with best rgds. Albert ------------------------------------------------------------------------ [2002-09-04 02:47:53] a.steckenborn@stebosoft.de Hello, using now PHP4.3.0-DEV. Nothing has changed. Without ODBC_Free_Result($res) and ODBC_Close($conn) it looks the same as with freeing Results and Close Connection. I've seen in the bug reports that there was a bug like this with db2 that was fixed. Hope that it will help. with best rgds. Albert ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19213 -- Edit this bug report at http://bugs.php.net/?id=19213&edit=1

« previous php.bugs (#18504) next »