Skip to content

Commit 4f0d453

Browse files
committed
add doc for tcp-connection-state-counter.sh
1 parent 0546f09 commit 4f0d453

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,32 @@ The stack of busy(26.1%) thread(24018/0x5dd2) of java process(23269) of user(adm
141141

142142
[silentforce](https://github.com/silentforce)改进此脚本,增加对环境变量`JAVA_HOME`的判断。
143143

144+
tcp-connection-state-counter.sh
145+
==========================
146+
147+
统计各个`TCP`连接状态的个数。
148+
149+
`Nginx``Apache`的机器上需要查看,`TCP`连接的个数,以判定
150+
151+
- 连接数、负荷
152+
- 是否有攻击,查看`SYN_RECV`数(`SYN`攻击)
153+
- `TIME_WAIT`数,太多会导致`TCP: time wait bucket table overflow`
154+
155+
### 用法
156+
157+
```bash
158+
tcp-connection-state-counter.sh
159+
```
160+
161+
### 示例
162+
163+
```bash
164+
$ tcp-connection-state-counter.sh
165+
ESTABLISHED 290
166+
TIME_WAIT 212
167+
SYN_SENT 17
168+
```
169+
144170
parseOpts.sh
145171
==========================
146172

0 commit comments

Comments
 (0)