LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2020, 08:15 PM   #1
bigfuzzydog
LQ Newbie
 
Registered: Aug 2016
Posts: 20

Rep: Reputation: Disabled
Possible to monitor data transfer by process in Debian?


I have a bit of an unusual problem.

Our internet access is via a hotspot on my phone (an old plan with "unlimited" data, which in real life means 15gb at high speed and then unlimited s-l-o-w data), and for the past few months we've had an unusual pattern with the data use.

On the 22nd of each month, when Verizon restarts our data allowance for the month, my computer starts to use data at an astronomical rate. It was even more pronounced today than usual: without meaning to watch any videos (although I read some news sites with auto-loading videos, so there's that), nor streaming any audio, nor downloading anything to speak of (a few PDFs, a couple mb each) my phone is telling me I went through 4.4gb of data in maybe 3 hours, of which I spent at least half of the time writing an article.

It goes like this until the 15gb of "high-speed data allowance" is gone, but once that's gone, suddenly the same sites I normally use don't use unusual amounts of data at all.

At one point I'd experimented with a VPN that let me monitor data transfer rates, and it seemed that the 80k/sec (!) that was getting transferred went to almost zero after closing one particular shopping site, so I figured it had been that site. But I wasn't there today at all, and 4.4gb of data. Nobody else in the house was using internet at the time.

It doesn't seem to be the phone, since I can use my wife's computer or my spare machine and the data usage is normal.

So: is there any way for me to monitor data transmission, by process, to try to figure out what's going on with my main machine? I'm wondering if there's something hinky going on, both because of this and because it's developed a few quirks - for example the login screen had gone from pretty much instantaneous (on waking the computer from sleep mode) to taking 8-10 seconds to show up, then back to showing up right away.

Thanks in advance!
 
Old 09-23-2020, 01:46 AM   #2
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,434

Rep: Reputation: 110Reputation: 110
I don't know how to monitor data consumption by process, but I know this:

Code:
$ vnstat -i [network interface]
Run 'ifconfig -a' to find out what your network interface is. For example, an Ethernet cable connection usually is eth0.

Also, open the file /etc/vnstat.conf and look for this line:

Code:
# on which day should months change
MonthRotate 22
22 is because you say your allowance restarts on the 22nd of each month.

You can also run this

Code:
$ watch -c "vnstat -i [network interface]"
and watch it kind of in real time.

You can also run 'nestat -nap' and get some vague information.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i wanted to monitor and restart a process if its stopped , by init process , is it possible amal900 Linux - Newbie 3 03-12-2019 08:45 AM
is faster data transfer possible ? NetProgrammer Programming 20 08-30-2012 10:45 AM
[SOLVED] Is It possible to continue the SCP transfer process once break?? anishkumarv Linux - Server 3 07-24-2011 12:00 PM
No transfer process shown during USB transfer mad.slacker Slackware 6 01-23-2010 03:48 PM
Is it possible to transfer data between two computers using a wire? baldurpet Linux - Hardware 5 03-10-2009 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration