Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41373 invoked from network); 26 Apr 2010 18:25:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2010 18:25:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:64119] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/51-58325-59AD5DB4 for ; Mon, 26 Apr 2010 14:25:26 -0400 Received: by bwz8 with SMTP id 8so12211614bwz.23 for ; Mon, 26 Apr 2010 11:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=d3G9wXkUzQIwPUAL/sYojp/+UrQYCdsR0nOU7Ty0wIE=; b=dTnCjJ3UB8184+ki/Becg6c+RQN8fUcVl4Zi4mIHGq2tiDi7yzEHyywnMTp343Ggl0 T105E8BFju51fPh6wqucDA8NaUob/Su6KSw47nEf+hcrTcP1ZRKQ5yRdBqPuTQVGArH6 wnA9sX/x3V+hNPfplDWvFwDGclr5q+PDvIFRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=HzIo5yKVsGmHLSqLQ59qz8PDI4ofzgblnpVKjojcz0S4fSLViikcMcU3pTBPl8wl7/ MiJl8TxtJOlWkXotxAMcPKtXxgiv4zd4WQpIFkSNltnciHm09+DDy5uK2vkhgBG8ooB1 xhYqAvJ719MQxcsFHZWrjUi/LWTXEc4mpwArA= MIME-Version: 1.0 Received: by 10.204.151.71 with SMTP id b7mr2712742bkw.114.1272306321386; Mon, 26 Apr 2010 11:25:21 -0700 (PDT) Received: by 10.204.103.199 with HTTP; Mon, 26 Apr 2010 11:25:21 -0700 (PDT) In-Reply-To: <4BD5B521.6070404@daylessday.org> References: <4BD54D42.5070400@daylessday.org> <4BD564A9.2060000@daylessday.org> <4BD57525.50803@daylessday.org> <36701B7BE4054FB3A72CFFB6B8A81DF5@KD5> <4BD5B521.6070404@daylessday.org> Date: Mon, 26 Apr 2010 20:25:21 +0200 Message-ID: To: Antony Dovgal , PHP Internals Content-Type: multipart/alternative; boundary=0015175cfd9854eeb3048527e64e Subject: Re: [PHP-DEV] One suggestion to PHP-FPM From: tyra3l@gmail.com (Ferenc Kovacs) --0015175cfd9854eeb3048527e64e Content-Type: text/plain; charset=UTF-8 > If you have any problems with third-party libs leaking memory not accounted > by Zend MM, you can always lower > the max_requests parameter in your config file. > > That's all. Problem solved. > > Its not the best idea. If you feed imagick with random images, then your memory leak will be pretty random. If you set the max_requests low, then you will see fewer memory limit exhausted, but the overall overhead will be much bigger, because you will respawn a decent amount of worker unnecessary, if you set it high, the overhead will be lower, but you will see much more aborted scripts. With the ability, to respawn processes based on the memory allocation, you could serve the maximal amount of request, without unnecessary respawn or aborted scripts. Tyrael --0015175cfd9854eeb3048527e64e--