Hi Gilad,
Thanks. The problem is that the connections are exceedingly short-lived. By the time I type in "netstat -na" already 1000 of them have come and gone.

 - yba


On Mon, 2 Feb 2009, Gilad Ben-Yossef wrote:

Date: Mon, 02 Feb 2009 16:29:23 +0200
From: Gilad Ben-Yossef <[email protected]>
To: Jonathan Ben Avraham <[email protected]>
Cc: ILUG <[email protected]>
Subject: Re: [YBA] TCP connection rate

Jonathan Ben Avraham wrote:

Dear list members,
What limits the rate that the Linux kernel TCP stack can accept new connections? How is that rate related to the rate that the application listening on a port can handle the connections? That is, if I try to connect and get ECONNREFUSED is there a way for me to know if I got it because the kernel could not handle the connection rate or if I got it because I had more connection attempts than the backlog parameter of my listen() call? In other words, do I need to tune the kernel or the application (MySQL) for the desired high connection rate and how would I know?

Just check what the value of the backlog parameter is and then use netstat to watch the application connections when you get ECONNREFUSED error. If the number of connections in netstat is equal (or at least very close to) the backlog parameter then it's the backlog parameter, otherwise it's something else.

Gilad



--
 EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA    ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
     - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to