time wait bucket table overflow
在linux的伺服器下看到如下連結數超出的說明:
time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 imgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
在配置引數中修改:
[root@mgZ log]# echo 20000 > /proc/sys/net/ipv4/tcp_max_tw_buckets
修改此配置檔案
[root@mgZ log]# vim /etc/sysctl.conf
net.ipv4.tcp_max_tw_buckets = 20000
使其生效
[root@mgZ log]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
net.ipv4.tcp_max_tw_buckets = 20000
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_rmem = 4096 87380 4194304
net.ipv4.tcp_wmem = 4096 16384 4194304
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.netdev_max_backlog = 262144
net.core.somaxconn = 262144
net.ipv4.tcp_max_orphans = 3276800
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_mem = 94500000 915000000 927000000
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_keepalive_time = 30
net.ipv4.ip_local_port_range = 1024 65000
看看統計的PV
time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 imgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
Mar 15 16:18:03 mgZ kernel: TCP: time wait bucket table overflow
在配置引數中修改:
[root@mgZ log]# echo 20000 > /proc/sys/net/ipv4/tcp_max_tw_buckets
修改此配置檔案
[root@mgZ log]# vim /etc/sysctl.conf
net.ipv4.tcp_max_tw_buckets = 20000
使其生效
[root@mgZ log]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
net.ipv4.tcp_max_tw_buckets = 20000
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_rmem = 4096 87380 4194304
net.ipv4.tcp_wmem = 4096 16384 4194304
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.netdev_max_backlog = 262144
net.core.somaxconn = 262144
net.ipv4.tcp_max_orphans = 3276800
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_mem = 94500000 915000000 927000000
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_keepalive_time = 30
net.ipv4.ip_local_port_range = 1024 65000
看看統計的PV
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23141985/viewspace-2057713/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- HPUX Error 23 File table overflowUXError
- oracle中WAIT TIME 和 CPU TIMEOracleAI
- 調整time_waitAI
- table表格中text-overflow失效解決方案
- [記錄]RuntimeWarning: overflow encountered in scalar subtract
- v$latch 的wait_timeAI
- mysql的wait_timeout和interactive_timeoutMySqlAI
- session檢視中wait_timeSessionAI
- 【MySQL】淺析interactive_timeout和wait_timeoutMySqlAI
- TCP埠狀態說明ESTABLISHED、TIME_WAIT、 CLOSE_WAITTCPAI
- 【YashanDB知識庫】YAS-02024 lock wait timeout, wait time 0 millisecondsAI
- MySQL中wait_timeout的坑MySqlAI
- 大量time-wait的處理方法AI
- time_wait的成因和解決方案AI
- 解決TIME_WAIT的問題AI
- tcp 埠的time_wait 問題TCPAI
- MySQL之wait_timeout和interactive_timeout引數MySqlAI
- 鎖:innodb_lock_wait_timeout和 innodb_rollback_on_timeout?AI
- Mysql引數解釋---wait_timeout、interactive_timeoutMySqlAI
- MySQL更新卡住報錯lock wait timeoutMySqlAI
- (轉)*Socket TIME_WAIT 問題Q&AAI
- linux下如何釋放TIME_WAITLinuxAI
- TCP連線狀態和time_waitTCPAI
- TCP TIME_WAIT狀態最佳化TCPAI
- Lock wait timeout exceeded; try restarting transactionAIREST
- TCP連線的TIME_WAIT和CLOSE_WAIT 狀態解說TCPAI
- PG: Estimate last modified or read time of a tableAST
- 【Mysql】MySQL中interactive_timeout和wait_timeout的區別MySqlAI
- v$active_session_history的wait_time和time_waited 列SessionAI
- TCP漫談之keepalive和time_waitTCPAI
- Bug 5490208 : TIME WAIT TCP SOCKET KGASAITCP
- 桶排序bucket sort排序
- Algorithm in Javascript Bucket SortGoJavaScript
- 系統調優,你所不知道的TIME_WAIT和CLOSE_WAITAI
- mysql, Lock wait timeout exceeded; try restarting 解決MySqlAIREST
- 'Lock wait timeout exceeded; try restarting transaction'問題AIREST
- 第三篇:關於TIME_WAIT狀態AI
- interactive_timeout和wait_timeout引數區別和設定策略AI