当服务器带宽占用情况不明的时候,或者有卡顿找不到原因的时候,可以从网络带宽占满考虑问题。
操作环境 Centos7
使用命令: iftop 和 lsof
操作方法
这里使用iftop来查看各进程的网络速率情况
1.系统默认是没有安装iftop的,需要先安装iftop,在安装iftop之前最好更新下epel repo
yum -y install epel-release
yum makecache
yum -y install iftop
2.使用iftop -PB来监控各进程网络速率情况,可以查看各端口的网络速率情况,可以看见21931端口占用速率最大为598KB/s
iftop -PB
3.查看21931端口是哪个进程
通过lsof来查看网络端口的进程,可以查看到21931端口是java的进程。
lsof -i :21931
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 25762 cloudera-scm 239u IPv4 224786 0t0 TCP centos7-mysql-196:48774->184.101.0.167:https (ESTABLISHED)
4.这个时候,如果一些进程是非法进程,或者是无用的,那就可以将其kill掉。
kill -9 25762
版权属于: 三三世界-百宝箱
本文链接: http://33f.net/linux/centos_check_network_usage.html
本文最后更新于2022年05月14日 ,已超过952天没有更新,若内容或图片失效,请留言反馈。
本文允许转载,但请在转载时请以超链接或其它形式标明文章出处
@Doug Shume it's ok for me , you can post here.
Saved as a favorite, I like your website!
If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.
Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!
Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.
Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.
zh.us.to 有效
kms.03k.org 有效
kms.chinancce.com
kms.shuax.com 有效
kms.dwhd.org 有效
kms.luody.info 有效
kms.digiboy.ir 有效
kms.lotro.cc 有效
www.zgbs.cc 有效
cy2617.jios.org 有效
@ 权限问题,试试sudo 再加命令。
你好提示Permission denied 怎么办啊