转载地址:http://steven-linux.javaeye.com/blog/534070 Java代码 1.For AIX: 2.-------------------------------------------------------- 3.no -p -o tcp_timewait=1(15秒) 4.no -p -o tcp_finwait2=10(5秒) 5.no -p -o udp_sendspace=32768 6.no -p -o somaxconn=8192 7.no -p -o tcp_keepidle=600 8.no -p -o tcp_keepintvl=10(5秒) 9.no -p -o tcp_keepinit=40 10.-------------------------------------------------------- 11. 12.For Solaris: 13.-------------------------------------------------------- 14.ulimit -a 15.ulimit -n 8192 16. 17.ndd -get /dev/tcp tcp_time_wait_interval 18.ndd -get /dev/tcp tcp_fin_wait_2_flush_interval 19.ndd -get /dev/tcp tcp_keepalive_interval 20.ndd -get /dev/tcp tcp_conn_req_max_q 21. 22.ndd -set /dev/tcp tcp_time_wait_interval 15000 23.ndd -set /dev/tcp tcp_fin_wait_2_flush_interval 5000 24.ndd -set /dev/tcp tcp_keepalive_interval 15000 25.ndd -set /dev/tcp tcp_conn_req_max_q 8000 26.--------------------------------------------------------
各类操作系统做Web Server 内核参数调整实践
最新推荐文章于 2024-07-30 20:07:10 发布