public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] anyone having apache2 memory issues
@ 2006-04-01  4:50 Alan Bailward
  2006-04-01 20:11 ` Jim
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Bailward @ 2006-04-01  4:50 UTC (permalink / raw
  To: gentoo-user

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 <alan@ufies.org> - http://arcterex.net
--------------------------------------------------------------------
"Backups are for people who don't pray."                 -- big Mike

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-01 22:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-01  4:50 [gentoo-user] anyone having apache2 memory issues Alan Bailward
2006-04-01 20:11 ` Jim
2006-04-01 20:24   ` Alexander Skwar
2006-04-01 21:58     ` Jim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox