From: bortzmeyer@cnam.fr (Stephane Bortzmeyer)
Subject: Increase the socket listen queue? (Was: TCP connection problem and how to interpret netstat output?)
Date: 2 Aug 1994 15:11:14 GMT [thread overview]
Message-ID: <31lnmi$p9l@sheckley.cnam.fr> (raw)
In-Reply-To: 31j1co$815@sheckley.cnam.fr
In article <31j1co$815@sheckley.cnam.fr>, bortz@cnam.cnam.fr (Stephane Bortzmeyer) writes:
>The symptom is the following: most of the time, the server (which has,
>at the present time, almost no other tasks, expect low-priority CPU-
>intensive jobs) replies instantaneously to the clients on the same
>Ethernet. But very often we see delays of 10, 20, 40 seconds and often
>Mosaic times out.
...
>Configuration: DEC 3000/600S with 128 Mb RAM, OSF/1 2.0. The HTTP
>server is a local one (software written here).
One hypothesis: the socket listen queue is full. I made a test program
and saw that, when more than n (n being the parameter given to the
listen(2) system call) clients are waiting, netstat displays the
last clients as being in the state SYN_SENT (no reply from the callee
yet). I observe exactly the same thing when my Web clients are blocked.
If my hypothesis is correct, how to increase the maximum size of
this queue? It defaults to 8 on OSF/1. It doesn't appear to be modifiable.
I changed SOMAXCONN in /usr/include/sys/socket.h and rebuild the kernel
with no results (only 8 clients can be in ESTABLISHED state).
Anyone has an idea on this change? (I don't have OSF/1 sources :-)
I made a Web page with the informations and the current state of work:
http://www.cnam.fr/Network/Infosystems/Tools/tcp-http-problem.html
Thanks in advance,
Stephane Bortzmeyer Conservatoire National des Arts et Metiers
bortzmeyer@cnam.fr Laboratoire d'Informatique
292, rue Saint-Martin
tel: +33 (1) 40 27 27 31 75141 Paris Cedex 03
fax: +33 (1) 40 27 27 72 France
"C'est la nuit qu'il est beau de croire a la lumiere." E. Rostand
http://web.cnam.fr/personnes/bortzmeyer/home_page.dom
prev parent reply other threads:[~1994-08-02 15:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-01 14:38 TCP connection problem and how to interpret netstat output? Stephane Bortzmeyer
1994-08-02 15:11 ` Stephane Bortzmeyer [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox