mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Large numbers of TCP resets
@ 2002-07-03 20:15 gphat
  2002-07-04 12:38 ` Willy Tarreau
  0 siblings, 1 reply; 3+ messages in thread
From: gphat @ 2002-07-03 20:15 UTC (permalink / raw)
  To: linux-kernel

Recently, the web-app at the company I work for started having problems load 
balancing.  This was traced back to a large number of tcp-resets being sent 
from the web servers to the clients.

Here's netstat output for one of the boxen:
    437761 active connections openings
    0 passive connection openings
    21 failed connection attempts
    0 connection resets received
    101 connections established
    140497907 segments received
    149967684 segments send out
    116610 segments retransmited
    111 bad segments received.
    1003306 resets sent

This box is running an apache/tomcat/jboss setup serving both HTTP and RMI 
requests.  The reset packets disrupt the load balancing method, as the load 
balancers think the reset means the connection can now be round-robined to the 
next machine.  This can be masked by using cookie-based balancing, but I am 
worried that we would be masking a problem.

Documentation concerning tuning buffers for network purposes say that 2.4 is 
good at auto-tuning, and that only /proc/sys/net/ipv4/tcp_wmem|tcp_rmem might 
need tweaking.

The kernel is 2.4.9-31smp from RedHat 7.2.  The cards are Intel 82557's.  There 
are two interfaces, with 1 for client access and 1 used for communication with 
the backend database.  (The ->client is the one we are worried about).

Any ideas on why the interfaces would be doing this?  The boxes served 1.6 
hits/sec average over last month for a total of about 10Gb.  Is there some 
tuning that needs to take place?

Thanks in advance.

Cory 'G'
Watson



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-04 12:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020703201553.DE9FD68CB5EA@mail.cafes.net.suse.lists.linux.kernel>
2002-07-04  3:53 ` Large numbers of TCP resets Andi Kleen
2002-07-03 20:15 gphat
2002-07-04 12:38 ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®