Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 76031 invoked by uid 500); 29 May 2003 12:21:43 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 76013 invoked from network); 29 May 2003 12:21:42 -0000 Received: from hydra.aufbix.org (212.93.228.66) by daedalus.apache.org with SMTP; 29 May 2003 12:21:42 -0000 Received: from brojedan.moj.net (brojedan.moj.net [212.93.231.110]) by hydra.aufbix.org (hey mr. postman!) with ESMTP id F2DC136E5E0 for ; Thu, 29 May 2003 14:21:41 +0200 (CEST) From: Borut Mrak Organization: Anonymous Attitude Readjusters Association To: users@httpd.apache.org Date: Thu, 29 May 2003 14:22:10 +0200 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200305291423.03365@brojedan.moj.net> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] apache 2.0.x freezing when using perchild mpm =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The subject says it all... At first I thought this is somehow related to PHP, but I commented out almo= st=20 all of the modules, and it still happens on static content. error log (LogLevel debug): Lots of these (normal): [Thu May 29 13:20:48 2003] [debug] perchild.c(1790): Determining if request= =20 should be passed. Child Num: 2, SD: 6, sd from table: 16, hostname from=20 server: www3.example.com And then: [Thu May 29 13:20:48 2003] [debug] perchild.c(1799): Passing request. [Thu May 29 13:20:48 2003] [debug] perchild.c(1655): passing request to=20 another child. Vhost: www3.example.com, child 2 7 [Thu May 29 13:20:48 2003] [debug] perchild.c(1707): Writing message to 7,= =20 passing sd: 22 [Thu May 29 13:20:48 2003] [debug] perchild.c(1717): Writing message succee= ded=20 49 =2D From here on httpd stops serving requests. It does not refuse connectio= ns, but=20 there are no new log entries and it doesn't return anything. Running ab -n 10 -c 1 http://www3.example.com/zeros.txt (zeros.txt is 10K worth of zeros) from 1 to 3 times is enough to freeze the= =20 server, but the number of tries needed is not connected to *Threads*=20 directives (I tried to fiddle with those to see if it has any effect). What I've found out is that the server freezes as long as it is running und= er=20 different UIDs. If it only runs as the default user (no ChildPerUserID=20 directives), everything is fine. If ChildPerUserID # # =3D NumServers,=20 everything is fine (no httpd processes running under the default UID). MPM config: NumServers 8 StartThreads 20 MinSpareThreads 5 MaxSpareThreads 20 MaxThreadsPerChild 20 MaxRequestsPerChild 0 ChildPerUserId #30000 #30000 2 vhost config: NameVirtualHost xx.xx.xx.xx:80 ServerAdmin webmaster@example.com DocumentRoot /var/www/www3.example.com ServerName www3.example.com AssignUserID #30000 #30000 Loaded modules: LoadModule access_module modules/mod_access.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so (I could lose some of these, but didn't want to massacre the default config= =20 file by removing all the directives that need these modules - I could if=20 anyone thinks it might help) Other non-default settings: AcceptMutex flock (the default - sysvsem doesn't work - but that's a topic for another post) My system: Debian 3.0 Linux 2.4.21-pre5 (also tried earlier kernels, 2.4.18 and maybe some others= ,=20 can't remember) glibc 2.2.5-11.5 Apache 2.0.46 (also tried 45 and two or three older versions) Httpd was configured like this: =2E/configure --prefix=3D/opt/apache-2.0.46 --bindir=3D/usr/local/bin/=20 =2D --sbindir=3D/usr/local/sbin/ --enable-mods-shared=3Dall --with-mpm=3Dpe= rchild=20 =2D --enable-ssl Any ideas? I need mpm_perchild, otherwise I won't migrate this webserver to= =20 Apache 2.0 - yet. :-) thanks, =2D --=20 Borut Mrak, b@aufbix.org PGP: finger b@aufbix.org =2D----BEGIN PGP SIGNATURE----- iD8DBQE+1ftyRUVvbWYRhIIRAiolAKDOmm1qzq6/Ni1Id6vqj+ztiqyXIACfQR4o nHTkIRP96Bl3QgSOOxxrOUo=3D =3DEbxX =2D----END PGP SIGNATURE----- --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org