Skip to contentSkip to conversation

Getting Out of Memory errors at random intervals.

DISCUSSION Andrew Brink 2 participants 9 messages Jan 13, 2002 – Jan 14, 2002

lore
Share & tools
lore
#0 lore raw

Hi. I've been getting random Out of Memory: Killing Processs pid (name) On _two_ different boxes. One is running 2.4.16 while the other is 2.4.17. Most of the time the process that gets killed is apache (these boxen are webservers) but sometimes its mysql, exim, htdig and others.

These boxes used to be rock stable, and now they get the OOM error at random periodic times.

Is there anything I can check for, or do to clear this up?

Any help would be greatly appreciated.
Thanks,
Andrew Brink

#1 lore raw
Quoted 10 lines

Hi. I've been getting random Out of Memory: Killing Processs pid (name) On _two_ different boxes. One is running 2.4.16 while the other is 2.4.17. Most of the time the process that gets killed is apache (these boxen are webservers) but sometimes its mysql, exim, htdig and others.

These boxes used to be rock stable, and now they get the OOM error at random periodic times.

Is there anything I can check for, or do to clear this up?

Run something that has a sane VM in all the known awkward cases (eg the Red Hat 2.4.9 tree) and you should be just fine. If not I'd be interested to know

For the newer trees I can only get stability under high loads with either the Andrea -aa vm patches or Rik's rmap-11b patch. Both of which seem to help no end.

Alan

#2 lore raw
In reply to Andrew Brink
Quoted 2 lines · Alan Cox

Run something that has a sane VM in all the known awkward cases (eg the Red Hat 2.4.9 tree) and you should be just fine. If not I'd be interested to know

I take it the vanilla 2.4.9 would also do?

Quoted 4 lines

For the newer trees I can only get stability under high loads with either the Andrea -aa vm patches or Rik's rmap-11b patch. Both of which seem to help no end.

As for High loads....these boxes don't even get a load.

Andrew

#3 lore raw
Quoted 5 lines · Alan Cox
Quoted 2 lines

Run something that has a sane VM in all the known awkward cases (eg the Red Hat 2.4.9 tree) and you should be just fine. If not I'd be interested to know

I take it the vanilla 2.4.9 would also do?

Nothing like it. The 2.4.9-RH tree is very different VM wise from the 2.4.9 base tree. Linus never took the VM updates from it.

Quoted 4 lines
Quoted 2 lines

Andrea -aa vm patches or Rik's rmap-11b patch. Both of which seem to help no end.

As for High loads....these boxes don't even get a load.

I suspect they are - possibly only a sudden sharp burst of web traffic causing a lot of cgi/mysql/apache process activity.

Alan

#4 lore raw
In reply to Andrew Brink
Quoted 8 lines · Alan Cox
Quoted 5 lines · Alan Cox
Quoted 2 lines

Run something that has a sane VM in all the known awkward cases (eg the Red Hat 2.4.9 tree) and you should be just fine. If not I'd be interested to know

I take it the vanilla 2.4.9 would also do?

Nothing like it. The 2.4.9-RH tree is very different VM wise from the 2.4.9 base tree. Linus never took the VM updates from it.

Okay. Will do.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Andrea -aa vm patches or Rik's rmap-11b patch. Both of which seem to help no end.

As for High loads....these boxes don't even get a load.

I suspect they are - possibly only a sudden sharp burst of web traffic causing a lot of cgi/mysql/apache process activity.

*Shrug* I've done some experimenting with this, having a lab (30 people) all hit the site at the same time. Holds it fine most the time. Usually the OOM's come during the middle of the night.

Quoted 2 lines

Alan

#5 lore raw
Quoted 3 lines

*Shrug* I've done some experimenting with this, having a lab (30 people) all hit the site at the same time. Holds it fine most the time. Usually the OOM's come during the middle of the night.

About 4am by any chance ?

#6 lore raw
In reply to Andrew Brink

On second thought, I went and reviewed some logs.

Happened a lot on one box around 8ish.

Quoted 5 lines · Alan Cox
Quoted 3 lines

*Shrug* I've done some experimenting with this, having a lab (30 people) all hit the site at the same time. Holds it fine most the time. Usually the OOM's come during the middle of the night.

About 4am by any chance ?

#7 lore raw
Quoted 10 lines · Alan Cox
Quoted 5 lines
Quoted 3 lines

*Shrug* I've done some experimenting with this, having a lab (30 people) all hit the site at the same time. Holds it fine most the time. Usually the OOM's come during the middle of the night.

About 4am by any chance ?

On second thought, I went and reviewed some logs.
Happened a lot on one box around 8ish.

Ok. Let me know how trying the other things work (also the list). I'm sure Andrea, Marcelo and Rik all want to look at these cases

#8 lore raw
In reply to Andrew Brink

Will do. However, might be a while, since this isn't reproducable on demand.

Quoted 13 lines · Alan Cox
Quoted 10 lines · Alan Cox
Quoted 5 lines
Quoted 3 lines

*Shrug* I've done some experimenting with this, having a lab (30 people) all hit the site at the same time. Holds it fine most the time. Usually the OOM's come during the middle of the night.

About 4am by any chance ?

On second thought, I went and reviewed some logs.
Happened a lot on one box around 8ish.

Ok. Let me know how trying the other things work (also the list). I'm sure Andrea, Marcelo and Rik all want to look at these cases