A process is an instance of a computer program that is being executed.

learn more… | top users | synonyms (1)

1
vote
1answer
25 views

How to run a process and find how much memory it uses? [duplicate]

I regularly use time to find out how long a process takes. Is there an equivalent command for memory? The usual ways to find out how much memory a process takes (ps,/proc/meminfo, etc.) work fine for ...
7
votes
4answers
2k views

How to stop a bunch of processes on unix fast?

How to stop a bunch of processes on unix fast. I can use ps/top, kill. If the number of processes is very large, I use shell script. Are there other ways, only one or two unix commands can do it ...
38
votes
5answers
15k views

Measuring RAM usage of a program

time is a brilliant command if you want to figure out how much CPU time a given command takes. I am looking for something similar that can measure the max RAM usage of the program and any children. ...
16
votes
5answers
22k views

How to see how many context switches a process makes?

I want to see if my process makes a lot of context switches. I also want to see how manpulating task groups affects the number of context switches.
5
votes
1answer
7k views

What is the difference in CPU utilization between 'ps aux' and 'ps -ef'?

I use Ubuntu 12.04.1 Linux. I see a difference between %CPU and C output format of ps command for a process. It is not clearly noted in the ps man page. Man pages says: CODE HEADER ...
1
vote
2answers
58 views

killing a process in one line

Sometimes I need to end a process quickly via terminal but it is tedious to just type ps -e | grep firefox and then kill all the time. I want to create an alias in my .bashrc and just type in ...
2
votes
2answers
951 views

how to find out the full path of the command from the result of lsof -i

lsof is a great utility, just now started using it. lsof -i | grep smtp => this give the following result. httpd.pl 212548 global 3u IPv4 893092369 0t0 TCP ...
2
votes
1answer
22 views

Sort processes by start time

Is there a way to view processes by the time they were started? top and htop have an option for sorting by how much time a process has been running, but I would like to sort by when the process began ...
1
vote
1answer
33 views

Verify why a process went down accidentally on Solaris 11

I want to know what reasons could have caused a process to be killed automatically by a system or taken down. What file do I need to verify, or how do I know why the process crashes accidentally? Is ...
48
votes
6answers
129k views

How to find which processes are taking all the memory?

I'm looking for somthing like top is to CPU usage. Is there a command line argument for top that does this? Currently, my memory is so full that even 'man top' fails with out of memory :)
2
votes
4answers
2k views

I want to kill all processes that result from the following command

The following command will display all the PID's running for vmstat1: ps -ef | grep "vmstat 1" | awk '{ print $2 }' My question is, how do I kill them all, if there's like 20 of them at once?
0
votes
1answer
37 views

Why i couldn't kill the NOHUP process?

So in order to keep my simple blog running permanently, i used the NOHUP command. nohup python manage.py runserver 0.0.0.0:8000 Everything worked perfectly, my blog keep running even though i ...
1
vote
1answer
25 views

How to get pid of subprocess from the subprocess itself

How can I get pid of a subprocess from the subprocess itself? foo() { echo pid=$$ echo spid=$! echo bpid=$BASHPID } echo PARENT_PID=$$ foo & wait on first run I get: PARENT_PID=17112 ...
-2
votes
2answers
65 views

linux on aix dont work pgrep -lf ora_pmon

pgrep -lf ora_pmon ksh: pgrep: not found. somebody know who to change the code without pgrep this is the result on another Os pgrep -lf ora_pmon 4104 ora_pmon_dbpicsr 5092 ora_pmon_dbpiss2r 14393 ...
0
votes
1answer
55 views

How “Max open files” soft and hard limit are set for specific process?

I used the cat /proc/<pid>/limits command to check the Max open file hard and soft limit, but I want to know how this value will be set and can it be increased or decreased? Is this value is ...
0
votes
1answer
145 views

I kill process but come back

I have a big problem on centos 6.4 i kill this(8904) but he come back and use the processor. How can we solve? I don't use apache(httpd) on my server. apache don't installed on machine. it's a ...
-6
votes
1answer
29 views

How to find the top 5 process in the CentOS server? [closed]

If anybody is asking about to check the top 5 process in the CentOS server
54
votes
3answers
126k views

Finding the PID of the process using a specific port?

I am installing hadoop on my Ubuntu system. When I start it, it reports that port 9000 is busy. I used: netstat -nlp|grep 9000 to see if such a port exists and I got this: tcp 0 0 ...
28
votes
3answers
14k views
3
votes
2answers
58 views

What are the default stdin and stdout of a child process?

I would like to know what are the default stdin and stdout of a child process (if there are such defaults). Are stdin and stdout of a child process the same as its parent process? Is this something ...
1
vote
2answers
23 views

Preventing the accidental killing of wrong process in htop

I frequently use htop to kill certain processes. To find the process I usually execute "Search" via F3. However, the list of processes refreshes frequently, and in many occasions, before I could press ...
8
votes
5answers
4k views

Understanding top and load average

I'm observing a high load average on a certain machine (about 9) in all three load fields. I understand load as the number of processes in state "run" / currently desiring CPU time. Am I correct at ...
1
vote
0answers
34 views

apt-get failed to fork in UML (user mode Linux)

I'm running a user mode Linux (Linux-3.19.8) for development testing. I'd like to be able to edit files inside the UML. I have some experience with Vim, so I'd prefer that. But unfortunately when I ...
6
votes
2answers
15k views

When a process will go to 'D' state?

I'm using "Linux hostname 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux" All the client machines will use Thin-client ,I will use my laptop for working and I will ...
0
votes
0answers
18 views

how to keep supervisord sub-process alive when supervisord was killed

I found when supervisord was killed, the sub-processes which controlled by supervisord also were killed. So I'm wondering that how to keep the sub-processes still alive when supervisord was killed.
0
votes
0answers
35 views

System management locked out by zypper process; refuses to kill

I am attempting to run zypper install nmap on openSUSE Tumbleweed (KDE), but when I attempt to do so I see the following error: System management is locked by the application with pid 12063 (zypper). ...
13
votes
1answer
1k views

Why do some programs return to the shell immediately while others don't until execution is complete?

I have read from the Modern Operating systems book that when a command is run, the shell creates a child process, waits for it until the child has finished execution and then waits for another command ...
0
votes
1answer
30 views

Upstart job starts the script twice

I am using Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64) where I created a simple Upstart job: # content of /etc/init/listener.conf start on runlevel [2345] stop on runlevel [!2345] ...
7
votes
4answers
40k views

Fix “firefox is already running” issue in Linux

I am trying to open Firefox in CentOS, but I'm getting the following message: Firefox is already running but is not responding and Firefox doesn't open. I tried this in command line: kill ...
3
votes
3answers
1k views

Is it good to utilize ~100% CPU by my application [closed]

I have an application written in C++ on Linux (Ubuntu 12.14), which decodes audio and finds the peak. This calculation is running on a background thread. From the main UI thread, I am calling the ...
0
votes
1answer
34 views

How to stop a “watch” process

I use "Pleeease" to watch CSS files and automatically compile them when any change happens. I did pleeease watch and then just close the terminal, the wathcing process keeps running. Now I want to ...
1
vote
1answer
27 views

How to know what exactly is being written or which process is keeping my storage disk busy?

I have a server , which has gone rogue(not really), i ran nmon and saw that its Disk utilization is BAD, its 100% busy writing!! Here is the output : Can someone tell me what is keeping my disk ...
36
votes
5answers
48k views

How to view the output of a running process in another bash session?

I have left a script running on a remote machine from when I was locally working at it. I can connect over SSH to the machine as the same user and see the script running in ps. $ ps aux | grep ...
19
votes
5answers
18k views

view stdout for another pts [duplicate]

Here is the situation. I left my pc at home doing an rsync from a 2TB hard drive to another 2TB hard drive (it's going to take a while since they are both USB 2.0). I am now at work and I have ssh-ed ...
0
votes
0answers
17 views

How to FG a Background Process without jobs, fg, etc [duplicate]

I am SSH'ed into a Ubuntu Server. I started a process and closed the terminal window, reconnected to the server. Using TOP I can see the process is still running smoothly, but I did not assign a job ...
0
votes
1answer
507 views

Maltego stuck in Loading Modules

I'm using Kali Linux 2016 on Vmware 12 player. I'm trying to run maltego(first time) and it's stuck on loading modules. any suggestions?
1
vote
2answers
28 views

Wait for program in a clean way (e.g. in a different terminal window)

If you want to execute one command and then another one after the first one finish, you can execute command1 & which prints the PID of the process executing command1. You can then think of ...
2
votes
1answer
25 views

Why do processes not fill up empty process IDs

Everybody knows that PID number 1 is systemd (or something equivalent). And every process after that takes another PID, counting up. However when there are 50 processes running (up to PID 50) and ...
1
vote
1answer
36 views

Duration of /proc/pid/stat

I have a process that starts a child process and when the child exits, scans /proc/<pid>/stat to gather some information about the CPU and memory the child used. However I am worried that I am ...
26
votes
1answer
4k views

How to set per process swapiness for linux?

/proc/sys/vm/swappiness is nice, but I want a knob that is per process like /proc/$PID/oom_adj. So that I can make certain processes less likely than others to have any of their pages swapped out. ...
3
votes
3answers
68 views

When interrupting a process, does a memory leak occur?

Lets say I created a program in c/c++, where I manually allocated some variables. Then while running the program, I send an interrupt signal (Ctrl-C). Are those variables freed from memory, or will ...
1
vote
2answers
32 views

How to know the path of a running executable?

I am working on a Linux server, and I running different jobs on different node. However, when compiling my program, I didn't set their specific name, so they are all a.out Now I found one of the ...
0
votes
1answer
58 views

How to get the number of threads on the waiting queue for a cpu?

Is there a way to programmatically get the number of threads waiting for cpu on Linux.
2
votes
2answers
69 views

What is happening after kill -CONT <PID>?

I have suspend a process through kill -TSTP <pid>. Then tried to continue it with kill -CONT <pid>. But After completion of process, control is not returning to bash. Why this is ...
7
votes
1answer
29k views

How to check which process is using most memory

When I check free in one of Prod server it showing 70% of memory is being used: total used free shared buffers cached Mem: 164923172 141171860 23751312 ...
32
votes
4answers
33k views

How can I pause/resume rsync

How can I pause an rsync that's running? First time I did Ctrl+C to kill it and used the -P flag to run again. Is this prone to corrupt the current file transfer? Second time I simply put MacOS to ...
1
vote
2answers
43 views

Who is stealing my pids?

I noticed that my Debian Jessie system is using many pids, even when the system is (should be) largely idle. The following shows that more or less 270 pids are used per 10s, while the number of active ...
1
vote
1answer
52 views

What are these processes and why can't I kill them?

(On OS X 10.11.3) I'm having a problem starting a java process that needs to listen on port 8040. Getting a BindException. So seems like somebody else is already listening on it. A quick check ...
5
votes
3answers
98 views

Finding number of child processes of a particular process

I have a Python script that spawns a few subprocesses but never more than n at a time. I want to write a shell script to confirm that it has no more than n subprocesses at any given time, but also ...
1
vote
4answers
80 views

<defunct> processes remain behind

I have an embedded system that was going non-responsive after running for several hours. After investigating I found that the system kept growing a list of <defunct> processes. Running ps axl ...