I am using Ubuntu 18.04 on a digitalocean droplet.

Here you can see the DigitalOcean bandwidth monitor graph

As you can see in the image the spikes occur exactly once every hour. According to the digitalocean monitor they start at hour:50minutes and they stop at nextHour:10minutes the peak being at hour:00 minutes.

I am new to ubuntu and I don't know how to find out what is causing those spikes.Please help :D.

  • sounds like you're being either hit hard during that time period or you're producing a lot of traffic. Your service(s) haven't been under attack or hijacked have they?
    – Thomas Ward
    Sep 25 '19 at 20:43
  • Using nethogs as suggested below I found the problem. There was a process I installed that was syncing data every hour.
    – Victordb
    Sep 26 '19 at 7:20

this is a very popular question.

I would suggest to to install Nethogs

sudo apt-get install nethogs

Then, if you want to check your internet traffic.

sudo nethogs eth0

If you want to check your LAN traffic (VPS)

sudo nethogs eth1

Here You have some links to possible answers.
1. How to monitor bandwidth usage per process?
2. How do I find out which process is eating up my bandwidth?

  • Is there any nethogs command for history? I mean I have to monitor nethogs exactly when the spike happens but I am wondering if I could watch activity that already happened. In my situation I know when the spike happens but what if I didn't and the spikes were random
    – Victordb
    Sep 26 '19 at 7:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.