From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FPY8K-0000BR-87 for garchives@archives.gentoo.org; Sat, 01 Apr 2006 04:54:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k314s447025802; Sat, 1 Apr 2006 04:54:04 GMT Received: from ufies.org (ufies.org [65.110.12.162]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k314o28B018472 for ; Sat, 1 Apr 2006 04:50:03 GMT Received: from phoenix.arcterex.net (arcterex.net [70.69.45.92]) by ufies.org (Postfix) with ESMTP id E815F1CC216 for ; Fri, 31 Mar 2006 20:50:44 -0800 (PST) Subject: [gentoo-user] anyone having apache2 memory issues From: Alan Bailward To: gentoo-user@lists.gentoo.org Content-Type: text/plain Date: Fri, 31 Mar 2006 20:50:28 -0800 Message-Id: <1143867028.19111.8.camel@phoenix.arcterex.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Archives-Salt: e6eb423a-88bf-4eed-a9a3-d604064e0eab X-Archives-Hash: bf58998ee40df682594ddba815bd8f61 Hey all. I recently swapped my apache 1.3 site (personal blog, albums, etc) over to apache 2 (stable) and all seemed to go well. However lately I've been having a lot of out of memory issues on the server. Even when memory is still available naked alan # free -m total used free shared buffers cached Mem: 505 475 29 0 33 219 -/+ buffers/cache: 222 282 Swap: 525 75 450 vmstat: procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 77020 50124 34212 206672 0 0 2 5 103 126 0 1 99 1 (sorry about the wrapping) I'm still getting errors like this in my site's error log: [Fri Mar 31 20:07:08 2006] [error] [client 209.123.8.19] (12)Cannot allocate memory: couldn't create child process: 12: mt-tb.cgi [Fri Mar 31 20:07:08 2006] [error] [client 209.123.8.19] (12)Cannot allocate memory: couldn't spawn child process: /var/www/arcterex.net/htdocs/mt/mt-tb.cgi[Fri Mar 31 20:07:09 2006] [error] [client 209.123.8.19] (12)Cannot allocate memory: couldn't create child process: 12: mt-tb.cgi This happens for most of the pages when I got to my movable site admin pages (all cgi). I'm using pretty much the stock apache2 config files on a 512mb athlon xp2600 server. I've used "threads" "-threads" and "mpm-prefork" in my USE flags, with pretty much the same results :( The server itself is a standard samba/apache/mysql system which seemed to run mostly ok under apache 1.3, so I'm really wondering what the heck is going on. When the server reports the out of memory conditions I can sometimes hit the page a couple of times and then it'll come up. Other times apache will run with 100% cpu and slowly use up memory and swap until I have to (slowly) login and kill it by hand. Anyone seen anything like this or have an idea on how to fix? TIA Alan -- Alan - http://arcterex.net -------------------------------------------------------------------- "Backups are for people who don't pray." -- big Mike -- gentoo-user@gentoo.org mailing list