From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13582 invoked by uid 1002); 14 Apr 2003 12:31:35 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 4674 invoked from network); 14 Apr 2003 12:31:35 -0000 From: Dar-Klajid To: Paul de Vrieze Cc: gentoo-dev@gentoo.org In-Reply-To: <33791.134.188.150.80.1050312805.squirrel@callisto.cs.kun.nl> References: <1050174571.1279.17.camel@blafasel> <200304141051.44750.vaclav.hula@capitol.cz> <1050311014.1280.70.camel@blafasel> <33791.134.188.150.80.1050312805.squirrel@callisto.cs.kun.nl> Content-Type: text/plain Organization: Message-Id: <1050323413.1273.82.camel@blafasel> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3- Date: 14 Apr 2003 14:30:13 +0200 Content-Transfer-Encoding: 7bit Subject: Re: [gentoo-dev] Performance once again.. X-Archives-Salt: fdeb5278-f69b-4bee-b0d6-44486ac97d4f X-Archives-Hash: 0a090e6993519f525c291e48417453bb On Mon, 2003-04-14 at 11:33, Paul de Vrieze wrote: > > > > No, not yet. > > I could try to run strace on apache, but the biggest problem is not the > > CPU it uses.. The problem is that it just stops to work. Yesterday I got > > a "MaxClients reached" error and MaxClients is 200.. After that it > > didn't "recover" so I had to restart it before any new connections were > > possible. Since that happened 8h after I started the server again, I > > doubt that I can strace this particular problem? Or do I miss something? > > Do you by any chance use persistent database connections from php. In that > case you might want to look at setting a limit on those connections, or > maybe disallow (or remove the use) them. Also fiddling with the apache > client settings might work. 200 clients is a lot, so probably some are out > on their backs (dead). In the config you can control restarting of those > clients (how long they are allowed to be alive). If you have a really busy > site, they might actually all be in use in which case increasing this > limit is the solution. Thanks for the reply, but I already checked all that. No, I don't use persistant connections. I do use a lot of DB-connections, but after this "incident" the server won't serve php-sites anymore and therefor there are no connections on the DB (I checked that on the DB-Server). I'm still not sure what causes this Perl-Error in the error_log (Syslog). I log via a custom logger-script (more or less a perl-oneliner) and some of the lines are send to another host. I used exactly the same configuration/script with Debian before, but Debian uses sysklogd and I switched to syslog-ng during my "distribution-move". Could this be a problem? I'm just guessing here, since I'm totally helpless right now. Concerning the other apache settings: Timeout 180 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 15 StartServers 10 MaxClients 200 MaxRequestsPerChild 500 Anything wrong with this settings? I'm quite sure that I copied them one by one from the Debian config. -- gentoo-dev@gentoo.org mailing list