Ubuntu :: See What Processes Are Using The Network?
Jul 16, 2010
I keep the network window of System Monitor active on my panel to see if anything is going on with the network.
After the last upgrade, lucid has been having nonstop short, small bursts of network activity, showing in system monitor as received data of approx 60 kb, then 0, then ~60, then 0, continuously. This is occurring before any applications are opened.
Whatever it is, it starts to tie up the processor until performance is unusable.
The processes screen does not offer any clues, perhaps because the data transfers are so small and spaced out. It still should indicate what is tying up the CPU, though. In the attached screencap, you can see the network activity pattern in the system monitor window in the panel.
Is there any way to monitor what processes are accessing the network in order to see what is going on?
I was wondering if anyone might know of good reference material, books websites etc., that discuss network security issues in layman terms. I would like to set up a dedicated Linux box as a firewall and would like to have a deeper understanding of the different types of configurations that are possible. I run a dual boot system and most of the firewalls I have used on the Windows side are very confusing to me. A lot of the time they give you a pop up that informs you that some cryptically named program is trying to access the network or the internet and wants to know if I want it to or not, 99% of the time I have not idea if it is a legitimate program or not. I realize that this is probably a separate issue (knowing how to identify programs and processes that should have access from those that should not) from setting up a firewall and basic network security but I know that they are related.
That would seem like an elementary feature to be able to enable only a few system applications access to the Internet. That would prevent trojans to download your HD for examples. I looked around and played with iptables but I couldn't not find anything that do the job. I loaded the xt_owner kernel for iptables but the --cmd-owner command is lacking. That was my holy grail but could not get --cmd-owner to work. iptables -I OUTPUT -m owner --cmd-owner "firefox" -j LOG --log-prefix "Testing " How can I protect my machine against the enemy within.
I have a desklet that, occasionally after toying with network stuff, will tell me that large amounts of data are being sent/received. What's a good way to determine what processes are occupying these resources?!
Why each boot-level consist of shell-scripts that start and stop processes? Why does the system while booting not just simply add the necessary programs for the next level by starting them, thus making the stopping of specific tasks not necessary and certainly speeding up the boot process?
What is the minimum amount of processes that can be run and still keeping stable? I have what looks like over 100 processes running and my computer is lagging pretty bad. Attached is an output of Code: ps -A And it comes and goes with the cpu usage. cpu1 will run at like 9 or 10 percent idle while cpu2 will run at 100 percent all the time. I am not sure whats going on. But id hate to have to start from scratch again begins I just got it set up the way i want it. And the network activity keeps having spikes when I am not online. I've scanned with multiple port scanners and nothing seems out of the norm.
I've just installed the Netbook Edition of Lucid on my MacBook, and it works great, with two issues: First, each time I start, the computer is extraordinarily laggy (pretty much unusable), until I run System Testing for video, and go through the whole process. Then it seems to work great. Also, I'm having a 100% CPU issue, which switches between my two CPUs. There was nothing under "my processes" that showed any kind of heavy use. But, under "all processes" was something called Backend. I killed the process and now everything seems to be working just fine.
I did some unfortunate dragging I think and now most of my windows which were open before are not there anymore. When I go to processes, I can see that they are still there. E.g. I had a terminal window open and now the window is gone but I can still see a bash process in the list
How do I get processes to run as root during startup? I have a random script and a package which both need to run as root in the background, but I can't find a way to do this automatically.
I started simply to end some processes to see if this would help. Ending dbus-deamon and pushing the shutdown button seems to shutdown the computer and temporarily solve the problem. I see that there are better solutions, so I hope it wont occur again.The problem is, I also ended a lot of other processes, like the clock, trashcan, workpane buttons, the sound button, the WiFi button and the show desktop button (and maybe some more I don't know of. I thought these buttons would automatically reappear after a reboot, but this is not the case. I could add some buttons manually, but I still haven't found the sound button and the WiFi button. Also, when I minimalize a window, it doesn't show anywhere on any panel.Luckily I can use alt-tab
I've a laptop running 10.04 LTS 64 bit. (Upgraded from 9.04 64bit). Some times (1 over 3) certain processes are not started at boot time : bluetooth, vboxdrv, hddtemp, cups.... (I may miss some other ones). If I use sudo and the service command I can start them by hand and if I reboot they usually start automatically. I've tried to start the laptop without the "quiet splash" options to the kernel command line but I did not see any error messages nor anything more explaining this behavior. So I wonder where I can find where the glitch is, how I can fix it, and what is the startup sequence of an Ubuntu machine (there is no /etc/inittab, and the /etc/rcN behavior does not seem to be standard)
I have an issue on one of my servers whereby the [normally very helpful] du and tar programs are somehow using up too much or my system resources (du 40% mem, tar 20% mem) and causing problems. I am after a command which is able to kill a process without knowledge of a PID but by process name e.g. "du" and memory usage e.g. >= 10%.
Something along the lines of: kill $(pgrep du) grep %MEM > 10
Although I know that is invalid syntax I cannot fathom the correct/best way to achieve this end!
I restarted conky, but didn't use my start script I just typed "Conky" from the command line, when it came up it showed the default options. Along with that I noticed "evolution-data" and "evolution-exchange" would show up as processes. (and then disappear) I don't use evolution, I use Thunderbird instead. Why is this process running? I checked the startup applications and I don't see anything Evolution related.
I just got lost. I have set up a server with two nics. eth0 for the lan and eth1 for the Internet. I have dhcp running on the server. I am using adsl and have run pppoeconf to set up my connection. I have turned off dhcp and nat on the router so the device works as a modem using bridge mode.The problem I have is that the server keeps hanging when loading pppoe or at least when pppoe has completed getting the public DNS addresses.What happens is that the Internet connection can be opened from the /network/interfaces file. This seems to work but it does not return control to the server - the process runs, the DNS addresses obtained but the rest of the processes following at start up never load (i.e. power on the server and the processes that load then).
So I thought that this must be in the wrong place. I commented out the items in the interface file and added a couple of entries to end of rc.local, my logic being that this will load after everything has finished. Nearly right but not. What happens is that all processes run and then the pppoe program runs and the DNS addresses obtained (seen from a screen connected to the server). But the system then stops. What should happen is that it continues to load and at the end return the login prompt.From a client I can see that dhcp has loaded since a private IP has been allocated but I cannot login from that client since the server has not finished loading.I am not sure what I have not done here since reading round I can see that what I have followed is the same as everyone else but I get a different result.
Just installed 10.04. I tried to put a trash bin on my desktop, and it completely borked my system.
I did a ctrl-F2, gconf-editor, app->nautilus->desktop, and checked trashbin visible.
After that icons kept spawning in my panel. Nautilus will start. I lost all of the icons from my desktop. I have logging out, and resetting the trashbin visibility. Nothing seems to fix the problem.
I would like to do the following: Create a banner for any user logging in through ssh which warns him/her about the number of processors being used already by other users (or conversely the number of free processors). For example, if a user logged in he would then see a message like: Warning! 7 out of 8 processors are in use.I already figured out how to do a banner and with ps -e -o pcpu I can get all processes' %CPU usage. I think I would like to count the number of processes which have more than 90% CPU usage and output this number ("7" in the example) in the banner
I'm working with Eclipse and it's starting to misbehave now and then which completely freezes my computer. Is there any emergency command to kill such a misbehaving process so I don't have to reboot my computer?
I already have a emergency xkill icon in my taskbar and a [Ctrl]+[F1] console with "> sudo killall eclipse" pretyped(!) but sometimes it's even to late for this. What I would need is a emergency command/console that gets a guaranteed amount of process time so I can kill these process.
After an update recently I noticed that my process count jumped up quite a bit. Somehow it doesn't seem related (it was an apt update I believe), but I'll just throw it out there. All of the extra processes seem to be related to XFS and JFS file system kernel processes, but none of my file systems use XFS nor JFS, just EXT3 & EXT4. Is there any safe/easy way to kill off these processes and prevent them from re-spawning? I don't find having irrelevant idle processes to be beneficial nor efficient. It's using Ubuntu 10.04 64-bit. Only active file systems are EXT4 and EXT3.
When I ps -e, I see a whole bunch of processes, many more that when I ran Slackware.Is there a list of processess I can look at to see what they are and what ones I dont need, instead of googling each one and getting some cryptic explanation?
is there any possible way to hide currently running processes from an user? This means I do not want him to know about what programs/processes does any other user but him run. In short words if that user runs 'ps -aux' he should get only his processes.
I want to find the cumulative CPU time used by each process between two points (defined by the user, e.g. running a command or clicking a button).
A first stab at this would be running
Code: ps -eo pid,cputime
at the beginning of the interval and at the end, then doing some arithmetic on the two sets of results. But this only shows whole seconds of cputime ... and what about processes that started and stopped during the interval?