Memory Leaks

From: Date: Thu, 19 Jul 2001 19:18:27 +0000
Subject: Memory Leaks
Groups: php.general 
Request: Send a blank email to php-general+get-58764@lists.php.net to get a copy of this message
I have a site that is doing moderate traffic (about 250000 per day). The site is configured as follows: SuSE 7.2 distribution Linux 2.4.4 kernel PHP-4.0.4pl1 Apache 1.3.19 open_ssl Dell PowerApp 1200 with 1gig ram When we review the error_log from apache, we see the following alot: zend_hash.c(291) : Freeing 0x0812738C (65 bytes), script=/www/dmp/app/index.php Last leak repeated 152 times Here is the script refered to: <?php //Copyright (c) 2001 by Level 67 LLC list ($Micro, $Seconds) = explode (" ", microtime ()); $StartTime = $Seconds + $Micro; // determine the leadsource if (isset ($HTTP_GET_VARS[LeadSource])) { $LeadSource = $HTTP_GET_VARS[LeadSource]; } elseif (isset ($HTTP_GET_VARS[id])) { $LeadSource = $HTTP_GET_VARS[id]; } else { $LeadSource = ""; } $CleanLeadSource = split ("[^0-9]", $LeadSource, 2); $LeadSource = $CleanLeadSource[0]; require "decision.php"; ?> I have searched the archives, as well as several forums regarding this issue and have not found anything that is helping. I would greatly appreciate your input on this matter. -- Paul Strange Lead Programmer Level 67 LC --- eMail: paul.strange@level67.net Office: 801.486.4686 Fax: 801.994.0467

« previous php.general (#58764) next »