Setting TCP kernel parameter solaris
Setting TCP kernel parameter solaris
How to know your TCP current kernel parameter
# /usr/sbin/ndd -get /dev/tcp tcp_ip_abort_cinterval;
180000
# /usr/sbin/ndd -get /dev/tcp tcp_time_wait_interval;
60000
# /usr/sbin/ndd -get /dev/tcp tcp_conn_req_max_q;
128
# /usr/sbin/ndd -get /dev/tcp tcp_conn_req_max_q0;
1024
# /usr/sbin/ndd -get /dev/tcp tcp_ip_abort_interval;
480000
# /usr/sbin/ndd -get /dev/tcp tcp_keepalive_interval;
7200000
# /usr/sbin/ndd -get /dev/tcp tcp_rexmit_interval_initial;
3000
# /usr/sbin/ndd -get /dev/tcp tcp_rexmit_interval_max;
60000
# /usr/sbin/ndd -get /dev/tcp tcp_rexmit_interval_min;
400
# /usr/sbin/ndd -get /dev/tcp tcp_smallest_anon_port;
32768
# /usr/sbin/ndd -get /dev/tcp tcp_slow_start_initial;
4
# /usr/sbin/ndd -get /dev/tcp tcp_xmit_hiwat;
49152
# /usr/sbin/ndd -get /dev/tcp tcp_recv_hiwat;
49152
# /usr/sbin/ndd -get /dev/tcp tcp_fin_wait_2_flush_interval;
30000
Change your TCP kernel parameter as you want :p
/usr/sbin/ndd -set /dev/tcp tcp_ip_abort_cinterval 10000;
/usr/sbin/ndd -set /dev/tcp tcp_time_wait_interval 30000;
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q 1024;
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q0 4096;
/usr/sbin/ndd -set /dev/tcp tcp_ip_abort_interval 60000;
/usr/sbin/ndd -set /dev/tcp tcp_keepalive_interval 300000; -For high traffic web sites lower this value-
/usr/sbin/ndd -set /dev/tcp tcp_rexmit_interval_initial 3000; -If retransmission is greater than 30-40%, you should increase this value-
/usr/sbin/ndd -set /dev/tcp tcp_rexmit_interval_max 10000;
/usr/sbin/ndd -set /dev/tcp tcp_rexmit_interval_min 3000;
/usr/sbin/ndd -set /dev/tcp tcp_smallest_anon_port 1024;
/usr/sbin/ndd -set /dev/tcp tcp_slow_start_initial 2; -Slightly faster transmission of small amounts of data-
/usr/sbin/ndd -set /dev/tcp tcp_xmit_hiwat 32768; -To increase the transmit buffer-
/usr/sbin/ndd -set /dev/tcp tcp_recv_hiwat 65536; -To increase the receive buffer-
/usr/sbin/ndd -set /dev/tcp tcp_fin_wait_2_flush_interval 1000; -if you want to release FIN-WAIT_2 connections faster-
or you can add all above "set" command at /etc/init.d/inetsvc or create new file on /etc/rc3.s/Sxx