php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8731 #8573 Test Result
Submitted: 2001-01-15 20:23 UTC Modified: 2001-02-18 06:37 UTC
From: fresh22 at hitel dot net Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.4 OS: SunOS snd01 5.6 Generic_105181-2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 4 = ?
Subscribe to this entry?

 
 [2001-01-15 20:23 UTC] fresh22 at hitel dot 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 error\n\n";
        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 !!!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-18 06:37 UTC] thies@php.net
please report if the httpd actually grows. a "big" httpd 
does not mean there's a leak.





 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Sep 30 22:05:55 2022 UTC