当前位置:网站首页>网络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命令行的基本功底,还是没有丢下。
怕忘了,记录一下。
边栏推荐
- Joint Time-Frequency and Time Domain Learning for Speech Enhancement
- 数字信号处理——线性相位型(Ⅱ、Ⅳ型)FIR滤波器设计(2)
- BIM and safety in road maintenance-buildSmart Spain
- MySQL common functions
- 比特熊直播间一周年,英雄集结令!邀你来合影!
- 本科毕业四年:工作,辞职,结婚,买房
- Onenet Internet of things platform - the console sends commands to mqtt product devices
- Typora adds watermarks to automatically uploaded pictures
- Share several tools for designing exquisite circuit diagrams
- 系统测试UI测试总结与问题(面试)
猜你喜欢

【20211129】Jupyter Notebook遠程服務器配置
![[JS] interview questions](/img/f3/8cf430b999980190a250f89537715e.jpg)
[JS] interview questions

Message queue monitoring refund task batch process

VS Code 设置单击打开新文件窗口,不覆盖前一个窗口

Build yocto system offline for i.mx8mmini development board

Switch basic experiment

Onenet Internet of things platform - mqtts product equipment connected to the platform

LeetCode力扣(剑指offer 31-35)31. 栈的压入弹出序列32I.II.III.从上到下打印二叉树33. 二叉搜索树的后序遍历序列34. 二叉树中和为某一值的路径35. 复杂链表的复制

Arm GIC (V) how arm TrustZone supports security interrupt analysis notes.
![[Suanli network] technological innovation of Suanli Network -- key technology of operation service](/img/80/6e3648c88d309516d4bc29db9c153c.jpg)
[Suanli network] technological innovation of Suanli Network -- key technology of operation service
随机推荐
One year anniversary of bitbear live studio, hero rally order! I invite you to take a group photo!
Switch basic experiment
kubernetes之ingress探索实践
(混更一篇)多个txt文本转一个表格
栈-------
The operation process of using sugar to make a large data visualization screen
華為面試題: 招聘
Chained storage of queues
【语音信号处理】3语音信号可视化——prosody
队列的链式存储
Double linked list related operations
A hole in solder paste
CPI教程-异步接口创建及使用
【20211129】Jupyter Notebook远程服务器配置
91. (cesium chapter) cesium rocket launch simulation
Understanding of NAND flash deblocking
Machine learning - Data Science Library - day two
GPS 数据中的精度因子(DOP)与协方差之间的关系 (参考链接)
VS Code 设置单击打开新文件窗口,不覆盖前一个窗口
AI抠图工具