Memcached problem with maximum connections

Dharmesh Maniar dharmeshm at rediff.co.in
Mon Feb 4 04:20:03 UTC 2008


There are around 40 local web servers.
I am using Apache with php. 
Apache is running as worker.
Here are the apache parameters:
StartServers         10
MaxClients         1200
MinSpareThreads     25
MaxSpareThreads     128
ThreadsPerChild     30
ServerLimit         40
MaxRequestsPerChild  10000

These parameters are same on local servers as well as servers on the other
network.

Regards,
Dharmesh.
-----------------------------------------------------
Project Lead
Rediff.com India Ltd.
-----------------------------------------------------
-----Original Message-----
From: Brian Moon [mailto:brianm at dealnews.com] 
Sent: Friday, February 01, 2008 11:30 PM
To: Dharmesh Maniar
Cc: memcached at lists.danga.com
Subject: Re: Memcached problem with maximum connections

Dharmesh Maniar wrote:
> Expected load to memcached servers are around 8000 connections.
> Now the problem is that php servers on the same network make too many 
> connections to memcached. And it crosses the maximum connections i.e. 
> 20000. Because of this memcached becomes unavailable.

How many web servers are local?  What web server / sapi is in use?  If 
Apache, what is the StartServers, MinSpare, MaxSpare and MaxClients.  If 
it is fastcgi, how many children are allowed per server?

-- 

Brian Moon
Senior Developer/Engineer
------------------------------
When you care enough to spend the very least.
http://dealnews.com/



More information about the memcached mailing list