Re: Preventing an apache mpm prefork from disk trashing

Emmanuel Kasper <[email protected]>
Newsgroups gmane.linux.debian.user.isp
Message-ID <[email protected]>
Am 2011-05-12 12:58, schrieb Thomas Goirand:
> On 05/12/2011 05:45 PM, Emmanuel Kasper wrote:
>> Hello
>>
>> I have a wordpress blog running with apache in prefork mode ( all debian
>> packages ) I have noticed that by traffic peaks ( think reddit ), Apache
>> starts to swap heavily becauses it creates too much processes according
>> to the RAM of the machine.
>>
>> I have been thinking of reducing MaxClients so that MaxClient * ResRAM
>> apache process < RAM of the server.
>>
>> Is that the correct way to treat this problem ?
> 
> Yes, that's the way. And I would also recommend to limit the maximum
> number of connection to port 80 with iptables, just in case someone is
> flooding. Do a -j DROP, so that clients will retry for a while to
> connect in case it goes busy. You can also use bwshare to limit the
> number of connections per IP (also a good protection against flooding).

yes a kinf of fail2ban was on my todo list for a long time, might be the
right time to check
thanks for the tip

Manu
smime.p7s (application/pkcs7-signature, 3.8 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.