Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9325 invoked from network); 21 Jan 2011 14:31:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2011 14:31:07 -0000 Received: from [127.0.0.1] ([127.0.0.1:26385]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 36/C9-55688-AA8993D4 for ; Fri, 21 Jan 2011 09:31:06 -0500 Authentication-Results: pb1.pair.com header.from=lgandras@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=lgandras@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: lgandras@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qy0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:44400] helo=mail-qy0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/B9-55688-297993D4 for ; Fri, 21 Jan 2011 09:26:27 -0500 Received: by qyk27 with SMTP id 27so1797189qyk.8 for ; Fri, 21 Jan 2011 06:26:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:date:message-id:subject :from:to:content-type; bh=ruUQzLm9cbV+9gZPYmXM4iCAkR+RiGOBMzcXPEJWdb4=; b=Y4+uD6bra5BANR6yJ0I9YEkg+KF6a0fT3KFlL0hxhgIuhKMfLtB0eUqAF+3JPt/cZ1 +pm0uJGSE3gzPBLvjBiTblNnzrPoidnMuq5FKMkf31nFDI7J3RySFTe/prbCzgNc+yjf 3zRgJDUfblxJnZYtILkw3BCe9V/zXtel7SQD0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; b=U0td3zf0CBlI2ftuVo6HV/5rnA1uzCvJN6rKTGMwmH0Q6m/b+RyeHPq1AHijRwKvFc yvtpkOj5Opb9l6sH4eCI7uOVpfDr5gt24PJ1rDHB0jSHrSGfvvHn5gXJgWETvpdaU0Gr 16OzYY/pdmWBNf+h9/86CQegpAG8YNix/IFDc= MIME-Version: 1.0 Received: by 10.224.37.73 with SMTP id w9mr689239qad.212.1295619966133; Fri, 21 Jan 2011 06:26:06 -0800 (PST) Received: by 10.220.94.137 with HTTP; Fri, 21 Jan 2011 06:26:06 -0800 (PST) Reply-To: lgandras@hotmail.com Date: Fri, 21 Jan 2011 09:56:06 -0430 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0015175cf710d8681f049a5c07f4 Subject: Memory leaks with Shared Memory From: lgandras@gmail.com (Andras Gyomrey) --0015175cf710d8681f049a5c07f4 Content-Type: text/plain; charset=ISO-8859-1 Hi, I've been playing around with Shared Memory, Semaphores and IPC. I've noticed even though i can restart apache, this shared memory segments remain in memory. This means a poor written script could eat a lot of server's available memory without freeing it back. This is more a question than a feature request. Isn't there a chance for php to keep a record of this shared memory segments? I know some principles, like, each process is independent when running under CGI. Is there not a centralized memory segment which could tell you the other memory segments which are being used by a script? Thank you so much, Andras --0015175cf710d8681f049a5c07f4--