tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: jreed () appliedtheory ! com
To: tru64-unix-managers
Subject: Trying to visualize traffic...CLARIFICATION
Date: Tue, 20 Feb 2001 14:55:20 +0000	[thread overview]
Message-ID: <98268096216652.tru64-unix-managers.marc@archive.invalid> (raw)

On reading my msg when it hit the list I realized it wasn't as clear
as I'd thought, and folks would be confused by traffic info about
"frontend". I'm appending revised version below. Apologies and
thanks!
--------------------------------------------------------------------

Subject: Trying to visualize traffic, if it is causing app slowdown

We have a config of 2 gs140s running Tru64 v 4.0F. 

"frontend" runs squid and apache, and serves static content. Request for
dynamic content are sent to "backend", which runs apache and locally 
written apps.

Users are reporting the config to be very slow at times, so I investigated
"backend" during a slowdown. Network traffic overall on "backend"
appears to be around 500-1300 packets/second overall. This seems 
divided almost 50/50 between traffic to 2 database backend hosts 
(gs140s) and traffic to/from "frontend"

"backend" is only using about 1/4 of its memory, and is about 56% idle.
The one striking thing I see is the nature of the traffic on "backend"
from "frontend".
At any given time when these slowdowns occur I see on the order of
1,800 network connections from "frontend" on "backend", of which 
about 1,775 are in a TIME_WAIT state! Also, the turnover is 
continuous - snapshots of connections on "backend" from "frontend",
taken about 5 seconds apart showing "ESTABLISHED" connections from
"frontend" on "backend" showed completely different connections. 

Connection btwn "backend" and "frontend" is over 100BaseT half-duplex.

I'm wondering if tuning of tcp parameters is in order here.
We've done some tuning already, based on a Compaq document for "busy
internet servers". Parameters I've tuned include:

inet:
        ipport_userreserved = 65000
        ipqs = 16
        tcbhashnum = 16
        tcbhashsize = 16384
        tcp_keepalive_default = 1
        tcp_keepidle = 1200

Anyone have any particular insights into this kind of behavior? 
The only other thing that comes to mind is perhaps apache is not
efficiently handling the number of connections. There were 109 httpd
processes on "backend" a moment ago, but that is declining
right now, currently about 72. 

Huge TIA!!!

Judith Reed
jreed@appliedtheory.com

                 reply	other threads:[~2001-02-20 14:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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