From owner-freebsd-hackers Wed Jan 10 13:59: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gandalf.bravenet.com (gandalf.bravenet.com [139.142.105.50]) by hub.freebsd.org (Postfix) with ESMTP id 32CA537B69F for ; Wed, 10 Jan 2001 13:58:43 -0800 (PST) Received: from localhost (dphoenix@localhost) by gandalf.bravenet.com (8.10.1/8.10.1) with ESMTP id f0ALwMC16914; Wed, 10 Jan 2001 13:58:22 -0800 (PST) X-Authentication-Warning: gandalf.bravenet.com: dphoenix owned process doing -bs Date: Wed, 10 Jan 2001 13:57:00 -0800 (PST) From: Dan Phoenix To: Daniel Hagan Cc: freebsd-hackers@freebsd.org Subject: Re: apache PMAP_SHPGPERPROC (fwd) In-Reply-To: <3A5CD933.C4FD1EFE@colltech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ya i checked that out already. netstat -m seems fine. What I am trying to do is move apache off this linux box to a freebsd one to split up the load. I leave mysql on linux box for the SMP. currently I have it moved back to linux box till I can fix this error. Here are some error logs from linux box right now. What I am thinking of trying...if in fact it is an openfile issue is to.... [Wed Jan 10 01:08:20 2001] [notice] Apache/1.3.11 (Unix) PHP/3.0.16 configured -- resuming normal operations [Wed Jan 10 11:57:53 2001] [error] (23)Too many open files in system: accept: (client socket) [Wed Jan 10 12:50:41 2001] [error] (32)Broken pipe: accept: (client socket) [Wed Jan 10 13:14:34 2001] [error] (32)Broken pipe: accept: (client socket) [Wed Jan 10 14:20:55 2001] [error] (32)Broken pipe: accept: (client socket) [Wed Jan 10 14:36:54 2001] [error] (32)Broken pipe: accept: (client socket) [Wed Jan 10 14:36:54 2001] [error] (32)Broken pipe: accept: (client socket) ...add these 3 lines to /usr/local/apache/bin/apachectl start section.... sysctl -w kern.maxfiles=1000000 sysctl -w kern.maxfilesperproc=1000000 ulimit -n 100000 #open more files than standard I pray this works....any suggestions for my move back to freebsd machine to fix this would be appreciated....so far I have cvsup'd the latest source and gone to a snapshot php version that had some freebsd fixes.... I doubt that will solve this...but if anyone has seen this before please offer me some insite...thankyou On Wed, 10 Jan 2001, Daniel Hagan wrote: > Date: Wed, 10 Jan 2001 16:50:43 -0500 > From: Daniel Hagan > To: Dan Phoenix , freebsd-hackers@freebsd.org > Subject: Re: apache PMAP_SHPGPERPROC (fwd) > > Are you running out of mbufs? Try running netstat -m and comparing peak > and max mbuf allocations. If you're running out, you'll need to > recompile your kernel (I can't remember the option off-hand, but it > should be in LINT). > > Daniel > > Dan Phoenix wrote: > > > > I have tried much ..increasing limits in the kernel etc.... > > real questions is ......how do you increase the socket buffer space? > > > > ---------- > > > > example.... > > > > 230 User dphoenix logged in. > > Remote system type is UNIX. > > Using binary mode to transfer files. > > ftp> ls > > ftp: socket: No buffer space available > > ftp> ls > > 425 Can't open passive connection: No buffer space available. > > Passive mode refused. > > ftp> > > > > ---------- Forwarded message ---------- > > Date: Fri, 5 Jan 2001 17:44:55 -0800 (PST) > > From: Dan Phoenix > > To: questions@FreeBSD.ORG > > Subject: apache PMAP_SHPGPERPROC > > > > Jan 5 15:42:53 www /kernel: pmap_collect: collecting pv entries -- > > suggest increasing PMAP_SHPGPERPROC > > Jan 5 15:49:59 www /kernel: pmap_collect: collecting pv entries -- > > suggest increasing PMAP_SHPGPERPROC > > Jan 5 16:11:04 www /kernel: pmap_collect: collecting pv entries -- > > suggest increasing PMAP_SHPGPERPROC > > Jan 5 16:16:44 www /kernel: pmap_collect: collecting pv entries -- > > suggest increasing PMAP_SHPGPERPROC > > > > apache is running with 170 deamons. > > ftp telling me it us running out of buffer space....there is 256 megs of > > ram.....top reports 11 megs left. What is this from? > > PMAP_SHPGPERPROC=201 from lint apparently. > > so going to increase it to 500 and see if that fixes this........ > > it is a php apache server than connects to another internal mysql server. > > > > i get this error trying to connect with mysql every third time or so. > > ERROR 2004: Can't create TCP/IP socket (55) > > > > yet when apache is not running ....it seems to work alright! > > > > -- > > Dan > > > > +-----------------------------------------------------------------------+ > > | ----- Daniel Phoenix Mail to:dan@bravenet.com | | > > | | / ___ ____ ____ |____ ____ | | > > | | / |/ / | \ / | \ | \ | \ __|__ | > > | | \ | | | \ / |____/ | | |____/ | | > > | | / | | | \ / | | | | | | > > | |__/ | \____\ \/ \____ | | \____ | | > > +_______________________________________________________________________+ > > mv /lib/ld.so /lib/ld.so.old;echo "Damnit" > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message