PHP 4.0 Bug #8731 Updated: #8573 Test Result
| From: | thies@php.net | Date: | Sun, 18 Feb 2001 11:37:22 +0000 |
| Subject: | PHP 4.0 Bug #8731 Updated: #8573 Test Result | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46833@lists.php.net to get a copy of this message | ||
ID: 8731
Updated by: thies
Reported By: fresh22@hitel.net
Old-Status: Open
Status: Closed
Bug Type: OCI8 related
Assigned To:
Comments:
please report if the httpd actually grows. a "big" httpd
does not mean there's a leak.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-15 20:23:02] fresh22@hitel.net
I download oci8.c from http://cvs.php.net.(#8573)
I test a follow script again after recompile php.
* script :
<?php
$conn = OCILogon("scott","tiger");
if(!$conn) {
echo "ocilogon1 errornn";
exit;
}
$query = "select userno from chkuser ";
$query .= " where kname = 'test' ";
$stmt = OCIParse($conn,$query);
OCIExecute($stmt);
OCIFetchInto($stmt,$CHKUSER,OCI_ASSOC);
$usernum = $CHKUSER["USERNO"];
OCIFreeStatement($stmt);
OCILogoff($conn);
echo $usernum." --test break1 n";
?>
But this script still use a lot of system memory. when
a large number of user access this script, the httpd is running extremely wierd exactly heap size
not a small memory-leak.
* command for checking memory :
ps -ef -o pid -o vsz -o rss -o fname -o args | grep httpd | sort
Before :
6384 10704 1800 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6385 10704 1776 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6386 10704 1776 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6387 10704 1776 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6388 10704 1776 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6395 976 864 grep grep httpd
27855 10704 4168 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
After just refreshing browser tweenty times :
6384 10920 6400 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6385 10912 6392 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6386 10704 1800 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6387 10704 1776 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6388 10704 1776 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
6419 10712 1784 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
Please help !!!
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8731&edit=2