
Ifusers are experiencing connection refused errors on a heavily loaded server, you can tune the
useof network resources on the server.
Whena TCP/IP connection is closed, the port is not reused for the duration of
tcp_time_wait_interval(default value of 240000 milliseconds). This is to ensure that there
areno leftover segments. The shorter the tcp_time_wait_interval, the faster precious
networkresources are again available. This parameter is changed by executing the following
command(do not reduce it below 60000):
usr/sbin/ndd -set /dev/tcp tcp_time_wait_interval 60000
Toautomatically have this ndd command executed after each system reboot, place it in a le
called/etc/init.d/network-tuning and create a link to that le named
/etc/rc2.d/S99network-tuning.
Ifyour system is not exhibiting the symptoms mentioned, and if you are not well-versed in
tuningthe TCP protocol, it is suggested that you do not change the above parameter.
TuningTCP BueringIfyou are seeing unpredictable intermittent slowdowns in network response from a
consistentlyloaded server, you might investigate setting the sq_max_size parameter by adding
thefollowing line to the /etc/system le:
set sq_max_size=512
Thissetting adjusts the size of the sync queue, which transfers packets from the hardware driver
tothe TCP/IP protocol driver. Using the value of 512 allows the queue to accommodate high
volumesof network trac without overowing.
Usingthe Solaris Network Cache and Accelerator(SNCA)TheSolaris Network Cache and Accelerator (SNCA) is a caching server that provides improved
webperformance to the Solaris operating system.
Itis assumed that SNCA has been congured for the system on which the Web Server is
running.For more information about SNCA and its conguration and tuning, refer to the
followingman pages on your system:
■ncab2clf(1)
■ncakmod(1)
SolarisPlatform-SpecicIssues
Chapter4 • Platform-Specic Issues and Tips 91