1 |
Hey all. I recently swapped my apache 1.3 site (personal blog, albums, |
2 |
etc) over to apache 2 (stable) and all seemed to go well. However |
3 |
lately I've been having a lot of out of memory issues on the server. |
4 |
Even when memory is still available |
5 |
|
6 |
naked alan # free -m |
7 |
total used free shared buffers cached |
8 |
Mem: 505 475 29 0 33 219 |
9 |
-/+ buffers/cache: 222 282 |
10 |
Swap: 525 75 450 |
11 |
|
12 |
vmstat: |
13 |
procs -----------memory---------- ---swap-- -----io---- --system-- |
14 |
----cpu---- |
15 |
r b swpd free buff cache si so bi bo in cs us sy |
16 |
id wa |
17 |
0 0 77020 50124 34212 206672 0 0 2 5 103 126 0 1 |
18 |
99 1 |
19 |
(sorry about the wrapping) |
20 |
|
21 |
I'm still getting errors like this in my site's error log: |
22 |
|
23 |
|
24 |
[Fri Mar 31 20:07:08 2006] [error] [client 209.123.8.19] (12)Cannot |
25 |
allocate memory: couldn't create child process: 12: mt-tb.cgi |
26 |
[Fri Mar 31 20:07:08 2006] [error] [client 209.123.8.19] (12)Cannot |
27 |
allocate memory: couldn't spawn child |
28 |
process: /var/www/arcterex.net/htdocs/mt/mt-tb.cgi[Fri Mar 31 20:07:09 |
29 |
2006] [error] [client 209.123.8.19] (12)Cannot allocate memory: couldn't |
30 |
create child process: 12: mt-tb.cgi |
31 |
|
32 |
This happens for most of the pages when I got to my movable site admin |
33 |
pages (all cgi). |
34 |
|
35 |
I'm using pretty much the stock apache2 config files on a 512mb athlon |
36 |
xp2600 server. I've used "threads" "-threads" and "mpm-prefork" in my |
37 |
USE flags, with pretty much the same results :( The server itself is a |
38 |
standard samba/apache/mysql system which seemed to run mostly ok under |
39 |
apache 1.3, so I'm really wondering what the heck is going on. When the |
40 |
server reports the out of memory conditions I can sometimes hit the page |
41 |
a couple of times and then it'll come up. Other times apache will run |
42 |
with 100% cpu and slowly use up memory and swap until I have to (slowly) |
43 |
login and kill it by hand. |
44 |
|
45 |
Anyone seen anything like this or have an idea on how to fix? |
46 |
|
47 |
TIA |
48 |
|
49 |
Alan |
50 |
|
51 |
-- |
52 |
Alan <alan@×××××.org> - http://arcterex.net |
53 |
-------------------------------------------------------------------- |
54 |
"Backups are for people who don't pray." -- big Mike |
55 |
|
56 |
-- |
57 |
gentoo-user@g.o mailing list |