Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mysqld invoked oom-killer
Date: Thu, 21 Jul 2011 00:44:29
Message-Id: CAC=wYCHusjVTNAd+JyEVbSuFRsF2nkALirM3-jYrC_jyJuEQmg@mail.gmail.com
In Reply to: Re: [gentoo-user] mysqld invoked oom-killer by kashani
1 >   The easiest thing to try is to turn off keepalives so child processes
2 > aren't hanging around keeping connections up.
3
4 KeepAliveTimeout defaults to 5 seconds, so that shouldn't be a
5 significant problem, and you get the efficiency of persistence and
6 probably pipelining too.
7
8 Could be worth reducing some of the tcp timers (the *_WAIT ones) if
9 your netstat is full of CLOSE_WAIT/TIME_WAIT etc sessions (which will
10 be more of a problem if you turn off keepalives).
11
12 But completely agree, if your mysql is sluggish, it will mean apache
13 processes hang around for longer than they need to and therefore build
14 up and use more memory. Use top then shift-m for quick overview of
15 memory use.