memcache connections are not closing

Pavel Pragin ppragin at
Mon Mar 3 16:18:04 UTC 2008


[ppragin at 132022-app5 tmp]$ fgrep "" netstat.1.app5.txt | wc -l

This is the output I get now but there is only 1k total connection right now. So most of them are memcache related.
I am sure if I ran this during the outage this numbers would be higher.


ppragin at 

T >  650.328.3900
M > 650.521.4377 
F >  650.328.3901 

The Brand Technology Company 

PA > 131 Lytton Ave., Palo Alto, CA 94301 
SF > 85 Second St., San Francisco, CA 94105 

-----Original Message-----
From: Brian Moon [mailto:brianm at] 
Sent: Sunday, March 02, 2008 6:20 PM
To: Pavel Pragin
Cc: memcached at
Subject: Re: memcache connections are not closing

Pavel Pragin wrote:
> tcp        0      0          
>          ESTABLISHED
> tcp        0      0          
>          ESTABLISHED

This netstat command is clearly showing both incoming and outgoing 
connections.  So, does the 3000 include both incoming and outgoing?  It 
looks like you should run:

nestat -anp | fgrep "" | wc -l

Then see how many incoming connections there are.

According to your Apache configuration, There could be as may as 768 
connections from Apache.  I would need to see the full output of the 
above netstat/fgrep to determine anything further.


Brian Moon
Senior Developer/Engineer
When you care enough to spend the very least.

More information about the memcached mailing list