php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8561 memory leak
Submitted: 2001-01-05 04:04 UTC Modified: 2001-03-09 21:19 UTC
From: fresh22 at hitel dot net Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0.4 OS: SunOS 5.6 Generic_105181-23 sun4
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-05 04:04 UTC] fresh22 at hitel dot net
I dunno whether it's the php memory management's problem, the phplib's problem, or my coding's problem. Apparently, I'm facing a memory leak's problem that has no solution at all until now. Please help if someone faced the same situation before. 

When I run follow script using OCI8 function, this script use a lot of system memory. when a large number of user access this script, the httpd is running extremely wierd exactly heap size. The memory usage is kept on increasing without stopping. 

Environment : Oracle8.1.5

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";
?>

command for checking memory : 
pmap -x 26749(pid)

other command for checking memory : 
ps -ef -o pid -o vsz -o rss -o fname -o args | grep httpd | sort

before running above script  : 
26749 10704 4168 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26752 10704 1808 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26753 10704 1784 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26754 10704 1784 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26755 10704 1784 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26756 10704 1784 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd

after running above script  :
26749 10704 4168 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26752 10888 6360 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26753 10888 6360 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26754 10888 6360 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26755 10704 1808 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
26756 10704 1784 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd
28154 10712 1792 libhttpd /H2K/HiTEL2000/webservice/apache/bin/httpd





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-06 20:34 UTC] sniper@php.net
Please try the patch in #8573.

--Jani

 [2001-03-09 21:19 UTC] sniper@php.net
No feedback, should be fixed in CVS.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC