Traffic usage: how to check it and where it goes
Where to view the traffic graph, how to measure usage by interface and by process, and what to do if the server suddenly starts downloading gigabytes.
Updated August 23, 2026
Traffic is the only metric that grows without your involvement: updates, bots, scanners, other people's requests. Usually it's a few gigabytes per month, but if the numbers jump by tens of times, it's either a configuration mistake or someone else's activity on your machine.
Graph in the control panel
In “Overview” at /hosting/vds/m/<id> there is a traffic graph with hour, day, week, and month scales. This is the fastest way to understand the shape of usage:
- a flat plateau around the clock — something is downloading constantly, real users don't behave like that;
- a spike at a specific hour — a scheduled task, an export, an update;
- growth in outbound with zero inbound — a warning sign, see signs of compromise.
Nearby, it's useful to look at the CPU and memory graphs: they help distinguish an update from a foreign process.
Counters inside the system
A quick look:
cat /proc/net/dev
ip -s link show eth0
Cumulative statistics by days and months:
apt install -y vnstat
systemctl enable --now vnstat
vnstat -d
vnstat -m
vnstat -l
vnstat counts from the moment of installation — install it right away so that later you have something to compare with.
Live picture of connections and processes:
apt install -y iftop nethogs
iftop -i eth0
nethogs eth0
ss -tnp state established
nethogs shows usage by process — exactly what you need when the question is “who is downloading this”.
What usually uses it
| Source | Order of magnitude |
|---|---|
| System updates | Hundreds of megabytes per month |
| Docker images | Hundreds of megabytes per build |
| Scanners and password brute-forcers | Megabytes, but thousands of connections |
| Website serving | Depends on traffic |
| Backup synchronization | Exactly as much as the data |
| Logs sent to an external collector | Unnoticeable, but around the clock |
Bandwidth up to 500 Mbps is the upper speed limit; it is covered separately in the article bandwidth up to 500 Mbps.
If usage spikes
- Look at the shape on the graph in “Overview”: plateau or spike.
nethogs— which process.ss -tnp state established— where the connections are going.- Check against your own tasks: cron, builds, synchronization.
- If the process is unfamiliar, consider the machine compromised and act according to signs of compromise.
Someone else's outbound traffic almost always means one of three things: spam distribution, participation in an attack, or a miner. All of this violates the terms of use and leads to the machine being restricted.
Reducing usage
apt clean
docker image prune
Compressing responses in nginx saves a noticeable share of outbound traffic:
gzip on;
gzip_types text/plain text/css application/json application/javascript;
Access logs should also be kept in check — logrotate with a weekly cycle.
Check the traffic graph at least once a week. A sharp and unexplained increase in outbound traffic is the earliest and most honest sign that something other than your code is running on the machine.