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

learn more… | top users | synonyms (1)

1
vote
1answer
20 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 ...
0
votes
1answer
18 views

Process login vs user login

In a Ubuntu 14.04 system, who has the following output: user1 :0 2016-05-02 14:49 (:0) user1 pts/4 2016-05-02 15:10 (:0) So apparently just the pts/4 is used. But, for example, ...
1
vote
2answers
35 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 ...
3
votes
1answer
37 views

Which process sent data out of my computer?

Using vnstat, I observed a lot of uploaded data from my computer and I don't know which process sent data out of my computer. Is there a tool to get stats on how much data a process consumed during a ...
2
votes
1answer
17 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
28 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 ...
0
votes
1answer
21 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
23 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 ...
0
votes
1answer
32 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 ...
-1
votes
0answers
18 views

how to write program to input proces_id and show process calls trap function? [closed]

To create a trap monitoring command for a specific process by getting input as process_id that you want to monitor. Then, show how many times that process calls trap functions and show summary of ...
-6
votes
1answer
20 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
1
vote
2answers
21 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 ...
3
votes
2answers
35 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 ...
0
votes
0answers
9 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
27 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). ...
1
vote
0answers
27 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 ...
0
votes
1answer
27 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] ...
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 ...
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
26 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
26 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 ...
0
votes
0answers
16 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 ...
1
vote
2answers
24 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
22 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
30 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 ...
3
votes
3answers
64 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 ...
0
votes
1answer
44 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.
1
vote
2answers
31 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 ...
2
votes
2answers
61 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 ...
1
vote
2answers
41 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
46 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
85 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
6answers
35 views

Is there any way to find a process (or at least the existence of a process) by working directory?

I know that you can find the working directory of a process a few different ways, but is there any way to do the reverse? I have some server applications written in node that are unfortunately tricky ...
1
vote
3answers
50 views

How to find an ssh session a process was started from

How can I find a process which was started from some ssh session. For instance, I gave same ssh cridentials (aka. userzxc/passwordzxc) for my several friends which IPs i already know. My goal is to ...
1
vote
4answers
60 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 ...
0
votes
1answer
27 views

Task running even after killing it

I am running kibana service in centos using nginx. kibana deployment - i followed this . When I check Kibana status i am getting as not running, But when i see it using ps -eaf | grep kibana i ...
2
votes
2answers
55 views

How to get all processes, currently running in kernel mode?

How can I list processes that are busy in a system call? Is there a way to find it out with the command top? I couldn't find any appropriate option in the man pages.
2
votes
1answer
30 views

Is there any command that limits the use of cpu resources by percentage?

So far I've been using nice -n 10, but that's just sets the priority of the command I want to run low, but if there's no other process running at that time the command will take all the remaining cpu ...
0
votes
1answer
37 views

How can I pause or freeze a running process? [duplicate]

I would like to pause/freeze a process in time; how can I do that? Not duplicate because kill -STOP <PID> has caused applications to crash when I've used it.
1
vote
1answer
36 views

How do I connect a USB mass storage device that has a custom pid and vid?

I have a device, custom mp3 player, that the pid and vid show up as a011:a011. dmesg usb 1-1.1: new high-speed USB device number 4 using ehci-pci usb 1-1.1: New USB device found, idVendor=a011, ...
1
vote
1answer
46 views

Script to ensure that only one instance of Oracle is running

I'm an Oracle DBA and need help/suggestion to understand a weird situation that came up today. One of our DBA job failing with saying 'Already its running' from Tivoli scheduler. However that is not ...
1
vote
1answer
31 views

How to handle broken link after file deletion.in /proc/<pid>/fd directory?

A process is creating huge number of log files and also deleting it. Many of those deleted files are having broken links in the /proc/pid/fd directory. Do these file handles need to be closed by ...
1
vote
2answers
38 views

How to detect which process filled up disk space

During weekend my Debian based proxy crashed due to insufficient free space. After reboot it was fine again, so on monday I went hunting for logs and/or explanations for saturday hang but I couldn't ...
1
vote
1answer
407 views

List of running processes

There is a top command to show running processes. I would like to print sorted list of unique values in field COMMAND. There is my solution for this task $ top -b -n 1 | tail -n+8 | awk '{print ...
3
votes
0answers
35 views

What process state(s) is counted into cpu time?

Two observations of mine (correct me if wrong): In the output of time for timing a process, 'User' and 'Sys' come from wait (2) or times (2), depending on the particular system. In Linux ...
1
vote
1answer
56 views

OOM-kill a process from user with highest memory consumption?

I have a multi-user system, where active users should get a fair share of the available memory. Can I set up Linux to kill a process of the user with the highest total memory consumption? This will ...
3
votes
1answer
54 views

Identify files/processes that prevent remounting read-only

My system runs Debian Testing, and / is generally mounted as read-only. The main problem with this is, every time I install something or update the system, I cannot remount the filesystem (I get the ...
0
votes
1answer
378 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
1answer
48 views

Why is uninterruptible sleep indicated by 'D'?

From "man ps": R = Running or Runnable S = interruptable Sleep T = sTopped Z = Zombie D = uninterruptible sleep (usually IO) Where does this D come from?
1
vote
3answers
48 views

How shell processes the content of command line in order to execute?

How shell processes the content of command line in order to execute? Command first and then option and arguments. Dividing command line into segments. Processes from beginning to the end.