Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19795 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27965 invoked by uid 1010); 28 Oct 2005 20:23:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27949 invoked from network); 28 Oct 2005 20:23:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2005 20:23:52 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:38002] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D8/90-20931-6D882634 for ; Fri, 28 Oct 2005 16:23:51 -0400 Received: (qmail 9072 invoked from network); 28 Oct 2005 20:23:46 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 28 Oct 2005 20:23:46 -0000 Message-ID: <6.2.3.4.2.20051028132228.0a164030@localhost> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Fri, 28 Oct 2005 13:23:44 -0700 To: Cristiano Duarte ,internals@lists.php.net In-Reply-To: <4E.0D.57990.B3A72634@pb1.pair.com> References: <4E.0D.57990.B3A72634@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] 1.5Gb PHP process, lots of swap From: andi@zend.com (Andi Gutmans) Hi Cristiano, Alex sent a patch to the list a while ago which forces the memory allocator to return memory to the system. However, in your case, I think you might be just having PHP variables "leaking". Can you try and identify where this info is sitting and try and unset it? It's important to dig deeper and/or reproduce in order to understand. Andi At 12:21 PM 10/28/2005, Cristiano Duarte wrote: >Is there any way to force a PHP CLI application to free the memory it took >from the system ? I mean, is there any PHP userland or PHP internal >functional call that could *really* free 'the memory allocated by a >variable' or 'the memory allocated but currently not used and waiting for >the script end to be freed' ? > >Regards, > >Cristiano Duarte > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php