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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fresh22 at hitel dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC