From new-httpd-return-17220-apmail-new-httpd-archive=apache.org@apache.org Mon Jul 02 19:25:51 2001 Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 40750 invoked by uid 500); 2 Jul 2001 19:25:49 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 40738 invoked from network); 2 Jul 2001 19:25:48 -0000 Sender: rederpj@raleigh.ibm.com Message-ID: <3B40CA8E.1000198A@raleigh.ibm.com> Date: Mon, 02 Jul 2001 15:25:02 -0400 From: "Paul J. Reder" X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdksecure i686) X-Accept-Language: en MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: cvs commit: httpd-2.0/server/mpm/threaded threaded.c References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Ryan, I ran one of my abuse runs against the current cvs tree. This is the same tests that I have been running (where the cyclic idle periods were discovered). The httpd.conf values are as follows: StartServer 10 MaxClients 30 MinSpareThreads 100 MaxSpareThreads 200 ThreadsPerChild 50 MaxRequestsPerChild 1000 and the values in mpm_default.h are as follows: DEFAULT_START_DAEMON 3 DEFAULT_MAX_FREE_DAEMON 10 DEFAULT_MIN_FREE_DAEMON 3 HARD_SERVER_LIMIT 32 HARD_THREAD_LIMIT 50 DEFAULT_THREADS_PER_CHILD 50 The first thing that happens is that Apache starts up the 10*50 workers and reports that "server reached MaxClients setting. consider raising the MaxClients setting." This is strange since it obviously started 10*50 (I checked with gtop at the number of processes/threads under httpd). The second, and more critical thing, is that after 2 minutes children started segfaulting. By 10 minutes the server stopped serving pages. By 12 minutes there were no more processes left. All had segfaulted. I have everything set to log core files to /tmp and have space there, but no files got logged. In fact I have received core files before. But nothing here. I'm checking into this. I have 13 copies of Jeff Trawick's b program running on 7 different machines. Apache is running on an eigth machine. The command line for the b programs is: ./b -c 100 -n 2559907 -f /tmp/replay.list -v Third, if I run the same run but with MaxRequestsPerChild set to 0 (infinite) It seems to run (for at least an hour) steadily at 200+ requests persecond at over 3.5 MB/sec, but the memory footprint of httpd has been growing by about 2k every 5 seconds. Finally, no matter how hard I try I cannot get it to ever go above 500 workers. Even though I said it could start up to MaxClients = 30 * ThreadsPerChild = 50 = a total of 1500 workers. It starts the initial 10*50 and never rises above that. If I have time later I will look into where the core files are and where it is dieing. I just wanted to get this note in as soon as possible. -- Paul J. Reder ----------------------------------------------------------- "The strength of the Constitution lies entirely in the determination of each citizen to defend it. Only if every single citizen feels duty bound to do his share in this defense are the constitutional rights secure." -- Albert Einstein