当前位置:网站首页>网络socket的状态要怎么统计?
网络socket的状态要怎么统计?
2022-07-01 12:33:00 【涛歌依旧】
最近,要分析socket为什么被占用那么多,需要知道socket的状态,写了一个语句,搞定:
xxxxxx$ netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
CLOSE_WAIT 90
ESTABLISHED 177
命令行的基本功底,还是没有丢下。
怕忘了,记录一下。
边栏推荐
- 系统测试UI测试总结与问题(面试)
- A hole in solder paste
- [Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2
- 队列的链式存储
- 第十四章 信号(四)- 多进程任务示例
- MySQL的零拷贝技术
- Relationship between accuracy factor (DOP) and covariance in GPS data (reference link)
- [Yunju entrepreneurial foundation notes] Chapter VII Entrepreneurial Resource test 1
- [datawhale202206] pytorch recommendation system: recall model DSSM & youtubednn
- What are the PHP FPM configuration parameters
猜你喜欢
第十四章 信号(四)- 多进程任务示例
LeetCode力扣(剑指offer 31-35)31. 栈的压入弹出序列32I.II.III.从上到下打印二叉树33. 二叉搜索树的后序遍历序列34. 二叉树中和为某一值的路径35. 复杂链表的复制
【datawhale202206】pyTorch推荐系统:精排模型 DeepFM&DIN
A hole in solder paste
顺序表有关操作
Common chart usage of Bi tools
【语音信号处理】3语音信号可视化——prosody
[datawhale202206] pytorch recommendation system: recall model DSSM & youtubednn
Onenet Internet of things platform - mqtts product equipment connected to the platform
Onenet Internet of things platform - mqtt product equipment upload data points
随机推荐
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 3
華為面試題: 招聘
How to install php7 and perform performance test using yum
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2
Tencent Li Wei: deeply cultivate "regulatory technology" to escort the steady and long-term development of the digital economy
USB peripheral driver - cable connect/disconnect
6.30模拟赛总结
JS related interview questions and answers (1)
Tencent security and KPMG released a regulatory technology white paper to analyze the "3+3" hot application scenarios
Mysql database knowledge collation
JPA and criteria API - select only specific columns - JPA & criteria API - select only specific columns
Indefinite integral
Ansi/ul 94 VTM vertical burning test for thin materials
MySQL的零拷贝技术
JS reverse | m3u8 data decryption of a spring and autumn network
Arm GIC (V) how arm TrustZone supports security interrupt analysis notes.
How to use opcache, an optimization acceleration component of PHP
Digital signal processing -- Design of linear phase (Ⅱ, Ⅳ) FIR filter (2)
微信小程序 – 80个实用的微信小程序项目实例
I wish you all a happy reunion