General :: Fedora - Determine Which Process Belongs To Which Window In Monitor?
Feb 26, 2011
I have Fedora Linux 13 64bit system. I use System Monitor to check which process is taking how much memory and cpu. Normally I have dozens of Chrome and Firefox windows open. The Processes tab shows which process is taking how much cpu/ram resources but I unfortunately there is no option like right click and make the window active that matches the PID (the one process that I have currently highlighted). Usually there is a chrome process taking up 30 or 40 percent of CPU while dozens other chrome processes taking much less cpu. I must determine which chrome window ( or any application which has multiple instances running) is taking that much CPU time.
I have Fedora Linux 13 64bit system. I use System Monitor to check which process is taking how much memory and cpu. Normally I have dozens of Chrome and Firefox windows open. The Processes tab shows which process is taking how much cpu/ram resources but I unfortunately there is no option like right click and make the window active that matches the PID (the one process that I have currently highlighted). Usually there is a chrome process taking up 30 or 40 percent of CPU while dozens other chrome processes taking much less cpu. I must determine which chrome window ( or any application which has multiple instances running) is taking that much CPU time. So can some one help me to solve this problem?
I'd like to determine what process has ownership of a lock-file. The lock-files are simply a file with a specific name that has been created.So, how can I determine what process has a particular file open in Linux? Preferably a one-liner type or a particular Linux tool solution would be optimal.
I am writing, well actually enhancing, a script to do a daily backup of important data on my PC to a second hard drive.I wish to tar my home directory to a single file - and will probably use gzip as well.So I decided to work out the correct tar syntax in a terminal first - here is what happened.I opened a terminal window.I cd to a directory not part of my home directory.I issued the command..Quote: tar -cvf mytar.tar /home/ken tar processed a bunch of files, the last being .netrc.I examined the tar file and it contains .netrc.The contents of .netrc are correct.I scrolled back through the list of files in the terminal window and do not see any error messages.I guess the question is... how do I determine what file tripped up the tar process?
I'm writing a C++ application and need to work with process substitution in the Bash shell. I'm trying to find a way to validate the paths passed as arguments to my program, some of which point to FIFO files created by process substitution.
Is there a shell (or C++) way that I can check if the system creates these files in /dev/fd or if they are created somewhere else?
I am looking for a simple process monitor to monitor CPU, ram, swap usage of selected processes and log the information to a csv file at a specified interval.
Or is there a way pipe the information I want from top to a csv file?
We have the below script, to check the process MEDT, if it doesn't run , then it will send a message immediately. the same script, if I want to check if it is continously running for more than 1 hour, then it should do the action mentioned below.
Get Fedora 11 and Apache installed. Open web browser and enter http://localhost and I get a "Fedora Test Page" that shows Apache is working (according to the info on the page). It says to put my web documents in /var/www/html/ ... however, as a user I cannot access it (put anything there) and I can't change the permissions (belongs to root) I'd like to run this as an intranet web server in our small ( <100 users) company.
So Linux does an excellent job in managing rights per user. You all know the file and process management.
But is it also possible to create a virtual private network interface?
Say Linux user John Doe (jdoe) wants to test network software without being root and disturbing the real netif. Can you create an interface that belongs to jdoe only? Like eth0, eth1 and ethJdoe, making ethJdoe belonging to jdoe.
I know the tool system-config-display can tell me all about my display but it's not available on all systems and so I'm looking for alternative ways to get my monitor type. Ideally, I could just look in /proc but I don't see anything there and I would like to be able to do so from a script perhaps written in bash or perl. Is there some place to get this info, say in a config file somewhere?
I just rebuilt my fedora box and I'm having some problems getting dual monitors to work. First, I can't reposition my secondary monitor to be on the left. It thinks it's on the right. I can use xrandr to fix this, but that is annoying. Is there no way to do this in the display properties? Second, maximizing a window makes it go across all screens. I unchecked this option in the display properties.I also unchecked the one for letting windows be in multiple monitors at once, but this still happens.
I have a file that contains 5 fields and anothen one with two I want to take the value from user and search file1 and if the value exists then write in file2 to the $2 to the line that $1=value
I installed Fedora 11 on my system (see below) using the i686 DVD. The graphical install worked just fine, and after the system booted back up, the X server was working very well.
There is no boot text. On the other system with Fedora 11, I can see the boot text scroll by in the window and/or a progress bar at the bottom of the monitor during the boot sequence. On this system, the monitor says "No Input", and nothing appears until the login prompt for the X window. I am able to enter the BIOS configuration page and navigate through it without any issues. I can also edit the grub commands before Fedora loads without a problem.
If I boot in text mode, no login prompt appears. If I wait long enough, the monitor enters the power save mode since it is not receiving a signal. I am able to log in to the system with my user name and password, and then start the X server. Once the server starts, the monitor turns back ON and all is well.
From the X window, I use the CTL+ALT+F2 key to enter text mode. The monitor stops responding. If I press the ENTER key a couple of times, then press ALT+F7, I can briefly see the text window with a couple of login prompts before the X window starts responding again.
How can I get the text mode to work? Why is there no input to the monitor when booting?
System: Intel D945GSEJT motherboard with Intel Atom N270 processor 2GB RAM 120GB SATA Hard Drive Fedora 11 i686
What should look like X Window System (X.Org) modeline to be put in xorg.conf, for high resolution (incuding recommended 1680x1050 @ 50Hz resolution) for 22" NEC LCD 22WV monitor? X.Org autodetect correctly only 800x600 and lower resolution SVGA modes,unfortunately.1,2
How can I generate proper "Modeline" line for xorg.conf? Is information included in NEC_Datasheet_LCD22WV-english.pdf enough (found on NEC LCD 22WV product info page)? What tools there are available to generate proper modeline for a LCD monitor for Linux? MS Windows (MS Windows XP Home) correctly detects and use 1680x1050 resolution; can I somehow get modeline information from MS Windows?
Footnotes:
1) It might be hardware problem with the monitor itself, as the same LiveCD Linux distribution that couldn't autodetect recommended 1680x1050 mode for NEC LCD 22WV monitor, correctly autodetects recommended 1440x900 mode for slightly smaller NEC LCD 19WV monitor from the same family, by the same producent.
2) Or it might be problem with graphics card (NVIDIA Riva TNT2 M64) not supporting such resolution, or with graphics driver not supporting such resolution.
Is there any way to monitor one process' CPU usage and RAM usage over time on Linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!
I have a display problem since updating to Slackware 13.37. Everything was fine on Slackware 13.1, but when I switched to 13.37 some piece of software came up with the wrong monitor size. I have a 1600x900 LCD monitor but the X screen came up as 1024x768 with blackness on either side of it. Under Slackware 13.1 the X screen came up as 1600x900 as it should without any prompting from me; I didn't even have an Xorg.conf file. I tried using the Xorg.conf file which was needed and work for older Slackwares, eg 12.*, but it didn't work. (Saying it didn't work is a gross understatement! That old Xorg.conf completely screwed up mouse, keyboard, and monitor; the screen was flashing and nothing worked. The only way to get control back was to SSH into the machine from my laptop and reboot. Killing the X server via that SSH console did NOT the flashing or get me back to my console login; only reboot worked.)
I find I can get the screen to be the right size manually by going through KDE's "System Settings" --> "Display and Monitor" --> "Size & Orientation", then disabling "LVDS1" and setting VGA1 to 1600x900. The size of my odd-sized monitor is being correctly detected for the "Auto" choice. Upon reboot LVDS1 stays disabled but VGA1 reverts to 1024x768 so I have to do this each time.I've done some search of the on-line literature regarding the error messages I am seeing in the boot log.
People are suggesting changing all kinds of things to alleviate the side effects of the "conflicting" error message above, even modifying GRUB parameters (which won't work for me since I use LILO).So, I have a manual work around which I must do each time I log in. Does someone know how I can get X or KDE to force 1600x900 upon start (while Linux/X/whoever find and fix the problem) or does someone know of a real fix?
I use linux and Unix and I want to monitor the memory usage for process. To prevent memory leakage and out of memory of the system. Any command or sytnax , have more better and presentable data than below command about memory usage of one process ?
How can I periodically monitor memory usage of a process in linux.Can it be dumped in some file.So that later I can see what was the process behaviour in taking memory.
when I use the fork() function in C it creates a child process but all the output and input is binded to the same terminal as the father process.my question is, how do i make the new process open a new terminal window in linux?
I updated to 11.3 and my Firefox became ugly. It now looks like this: [URL]
It used to look something like this with 11.2: [URL]
Firefox still uses KDE file dialogs etc. so at least some of the Kde integration still works. How can make firefox look like it belongs to Kde desktop. I already tried reinstalling firefox and also removing .mozilla folder.
I'm currently using an NFS server to share data on our small business network. It works a bit faster than SAMBA, but I do have a problem. NFS takes group id from the first 16 groups a member belongs to when mounted - let's not get into how that doesn't make huge amount of sense
Since I assigned about 6 different groups to our users internally to control directory access, some internal groups do not pass when mounting the server's files (as ubuntu has at least 8 or so groups that are system dependent). Is there a way to change the ORDER of the groups a user belongs to? I see that what gets passed to NFS mount follows exactly the order given when I type "group" when logged in. The groups do not come in alphabetical order or group ID number. I did try changing the order of entries in /etc/group and that also doesn't do anything. Essentially they seem completely random.
there's this process on my system monitor that opens and closes by itself it does not have a description or a name and makes my hard drive spin like hell
I have looked for and found several tools to show a system's total network usage. I have not, however, been able to find any that show this information in the context of individual processes. Do any such tools for linux exist?
I have a few AWS instances (linux micro, fedora-like) that occasionally (4x every 24hours) trip a CloudWatch monitor for CPU utilization. alarm => 85% at 5 minute slices.
The problem with this is that we're unsure WHAT is causing it. I have an idea to poll cpu usage every 5 mins and if there's a spike (eg, => 85%) then dump some process table stuff exposing the offenders.
I downloaded Ubuntu 10.10 and made created a DVD. When I started installing it, I'm not able to do it. I think its hanging. This is what happening: First I found a screen saying 'ubuntu 10.10' and it loaded for some time then I got a screen with a black color task bar at the top of the screen, then after some time it turned into white color and after some time it disappeared. Nothing else happened. I didn't find any pop-up window to start installation of OS..
But when I tried this in my friends house, I found that instead of 'ubuntu 10.10' there came 'Ubuntu' LOGO and it was little bit slow but a pop-up window opened to start installation.. Why its not coming in my PC.. my computer configuration : Windows XP, SP 2 256 MB RAM, 1.81 Ghz AMD 64 Athlon Processor 1800+ I want to shift my OS to Ubuntu completely.