Results 1 to 7 of 7

Thread: What's that "Mysterious" Python Process Using My Network?

  1. #1
    Join Date
    Aug 2006
    Beans
    458
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question What's that "Mysterious" Python Process Using My Network?

    Occasionally I notice a lot of data being downloaded without any of my input whatsoever and when I check nethogs, it simply says /usr/bin/python.

    Ubuntu updates are not set to download automatically. And there are no other applications that I run which require downloads like this. (Well, there's BOINC, which can access the network only during certain hours, but it's not that either.)

    I've noticed this only a few times, so even if there's a reason or pattern to it, I haven't noticed it yet. So, my question is: how I can find out more about what's using the network?

  2. #2
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: What's that "Mysterious" Python Process Using My Network?

    the system itself do some push/pull communications (sync time, update-notifier, zeitgeits,...), and some widgets too via javascripts,...

  3. #3
    Join Date
    Aug 2006
    Beans
    458
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What's that "Mysterious" Python Process Using My Network?

    Quote Originally Posted by dino99 View Post
    the system itself do some push/pull communications (sync time, update-notifier, zeitgeits,...), and some widgets too via javascripts,...
    Hi dino; thanks for the reply. The amount being downloaded was too much for sync-time or things of that sort. Anyway, do you know how one can find out with more accuracy (than /usr/bin/python) what's happening?

  4. #4
    Join Date
    Feb 2009
    Beans
    524
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What's that "Mysterious" Python Process Using My Network?

    If the process doing the network activity is still running, open up system monitor, go to Edit -> Preferences, go to the "Processes" tab and check "Command Line" under "Information Fields". This will cause system monitor to display the full command line of each process.

    Alternatively, you can open a terminal and run:

    Code:
    ps -Awf
    or, to filter for all instances of python

    Code:
    ps -Awf | grep python
    "ps" gives a list of processes, the -A option causes it to display all processes on the system instead of just those on the current terminal, -w prevents ps from truncating output lines that are longer than the width of your terminal, -f causes the full command line of each process to be listed. "grep python" filters out all lines that do not contain the string "python".

  5. #5
    Join Date
    Aug 2006
    Beans
    458
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What's that "Mysterious" Python Process Using My Network?

    Thanks for the reply, jwbrase. It's not running right now, and when it does it lasts for no more than about 10-20 seconds. I'll try this the next time I notice it.

  6. #6
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,869
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: What's that "Mysterious" Python Process Using My Network?

    10-20 seconds? How much data would that be on your connection?

  7. #7
    Join Date
    Aug 2006
    Beans
    458
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What's that "Mysterious" Python Process Using My Network?

    Quote Originally Posted by Impavidus View Post
    10-20 seconds? How much data would that be on your connection?
    A few MB at most. The maximum I get is around 220KB/s.
    Last edited by navneeth; February 28th, 2013 at 07:41 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •