Received: by taz.hyperreal.com (8.6.12/8.6.5) id MAA04421; Thu, 30 May 1996 12:07:06 -0700 Received: from irene.pcug.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with SMTP id MAA04396; Thu, 30 May 1996 12:06:54 -0700 Message-Id: <199605301906.MAA04396@taz.hyperreal.com> Received: from us1.imdb.com by irene.pcug.co.uk id aa14452; 30 May 96 20:06 BST Subject: Re: WWW Form Bug Report: "web server sleeps" on FreeBSD To: sjohn@alamak.com Date: Thu, 30 May 1996 14:06:09 -0500 (CDT) From: Rob Hartill In-Reply-To: <199605301852.LAA02347@taz.hyperreal.com> from "sjohn@alamak.com" at May 30, 96 11:52:30 am Organization: Internet Movie Database http://us.imdb.com/ X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Content-Length: 2469 Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com >Submitter: sjohn@www.alamak.com >Operating system: FreeBSD, version: 2.1 >Version of Apache Used: 1.05 >Extra Modules used: used default >URL exhibiting problem: http://www.alamak.com/chat/index.html > >Symptoms: >-- >The web server goes to sleep and will not accept >connections. There are a couple different things >that seem to trigger it. In some cases it is clearly >that the server has reached MAX_PID and the child >httpd processes are split between low and high and it >seems to go to sleep. > >But, randomly I get there errors on the console and >these are associated with a more severe sleep up to >10 minutes or more.... > >Here is an example of the errors that I am getting >from httpd ... > >May 30 11:46:40 www httpd: gethostby*.gethostanswer: asked for "96.98.10.206.in-addr.arpa", got "96.0.98.10.206.in-addr.arpa" > >May 30 11:47:11 www httpd: gethostby*.gethostanswer: asked for "96.98.10.206.in-addr.arpa", got "96.0.98.10.206.in-addr.arpa" >May 30 11:48:18 www last message repeated 2 times your mail will be shown to the developers. If anyone wants to comment on the above they'll be in touch soon. >I'm to the greatest unix expert so I'd appreciate >any help you can offer. I'm no expert either, but what you say below, is wrong. >For the first case I tried increasing the max pid >allowed in the kernel but found cron didn't like >that ... it is set ridiculously low 30,000 which >I reach that value in less than an hour at the rate >of turnover on my server. I may try recompiling >cron with a higher max_pid with the kernel and see >to fix that but what is the inet.arpa stuff that >httpd is sending as error to the console? The >strange thing is that it seemed to have little >effect on my other server which is a P133 ... but >the new one I am having problems with gives the >same error but seems to have these terrible sleeps... >the new server is a Pentium-Pro so different cpu >architecture ... should i turn of the -m486 flag >whem compiling? pid's wrap around to the lowest free pid once they reach the max. You should put the number back to where it was originally. It's possible that you are running low on some other resource such as processes per user, file descriptors or network buffers. Long delays are often caused by the nameserver. If you have namelookups switched on (addresses instead of numbers appearing in the logs) then switch it off by setting MIMIMAL_DNS in "Configuration" then recompiling apache. rob