Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40073 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87932 invoked from network); 24 Aug 2008 14:00:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2008 14:00:26 -0000 Received: from [127.0.0.1] ([127.0.0.1:19992]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 5F/39-22001-97961B84 for ; Sun, 24 Aug 2008 10:00:25 -0400 X-Host-Fingerprint: 84.167.92.227 p54A75CE3.dip.t-dialin.net Received: from [84.167.92.227] ([84.167.92.227:2621] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/19-22001-95761B84 for ; Sun, 24 Aug 2008 09:51:21 -0400 Message-ID: To: internals@lists.php.net Date: Sun, 24 Aug 2008 15:51:19 +0200 User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 84.167.92.227 Subject: php-cgi: cgi_main.c => max_requests = 500? From: guidoreina@gmail.com (Guido) Hi all, I am new to PHP and to this forum. I was testing my webserver with PHP and found out that after 500 requests the php-cgi process finished (without cores). I ran it with valgrind and no memory leaks :). I thought it couldn't be a coincidence that, always, after 500 requests, php-cgi finished; so I have had a look at cgi_main.c and found: max_requests = 500; I have seen that the environment variable: PHP_FCGI_MAX_REQUESTS might be used to override this value; why php-cgi has to finish after n requests? Thanks in advance, Guido.