大网数据广告活动
服务器运维问答

See past bandwidth by process on a Linux server

· 52CE 我爱测

I have a Ubuntu 16.04 server (Xenial Xerus). My server statistics say that last night there was a bandwidth peak at 3+ TB, and I don't know why. I tried SLURM , and it showed that I actually used that traffic: Is there any way I …

问题原文

原帖链接 · Sibidharan · CC BY-SA 3.0

I have a Ubuntu 16.04 server (Xenial Xerus). My server statistics say that last night there was a bandwidth peak at 3+ TB, and I don't know why. I tried SLURM, and it showed that I actually used that traffic:

Is there any way I can find out what caused this traffic?

已采纳解答

原帖链接 · NGX · CC BY-SA 3.0

If you do not have anything currently installed that is monitoring and logging then you do not have any way to narrow down which process(s) were consuming bandwidth. I would recommend vnstat or mrtg for overall usage statistics and nethogs for narrowing down which process is using your network bandwidth.

You can install all three by running these commands:

sudo apt-get update
sudo apt-get install nethogs
sudo apt-get install vnstat vnstati
sudo apt-get install mrtg mrtg-contrib mrtg-ping-probe mrtg-rrd mrtgutils mrtgutils-sensors pcp-import-mrtg2pcp

This will install each of the programs along with their associated modules and utilities.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。