New answers tagged process
0
votes
How to kill MY OWN idle ssh sessions
Don't run pkill sshd on a remote server, or you won't be able to reconnect: ssh: connect to host yourdomain.com port 22: Connection refused. Instead:
Run w. Find your idle command in the last column (...
0
votes
Where does the signal that causes EINTR come from?
Signals that cause a system call to return EINTR come from where signals normally come from. The behavior you describe can be caused by any signal that is caught by a signal handler.
I interpret your ...
0
votes
killall gives me `no process found ` but ps
Setting the name of the main thread with pthread_setname_np call will also cause killall and other command to fail even if the name of the process will stay the same with ps:
pthread_setname_np(...
0
votes
Create tree of processes
I'd suggest taking a snapshot of the processes currently running on the system. The absolute minimum that you'd need is each PID and its corresponding PPID:
ps -ax -o pid=,ppid=
This will give you ...
3
votes
Accepted
How to list process with their depth?
On my OpenBSD system (also tested on Ubuntu):
$ ps -o pid=,ppid=,command= -ax | awk '{ parent[$1] = $2; cmd[$1] = $3 } function depth(p) { if (p == "" || p == 1) return 1; else return depth(...
0
votes
Can not stop nohup process
In my case, I was protecting laravel using nohup. I had to also kill the process bound to the port
use fuser 8080/tcp (change the port based on your own) and kill the PID found there.
0
votes
How to view a specific process in top
When your top does not know the -p option (top: invalid option -- 'p'), then you can get a similar result using the batch mode with -b:
top -b | grep java
2
votes
Accepted
Why does Linux needs both pid_max and threads-max?
These settings don’t have the same effect:
threads-max limits the number of processes which can be instantiated simultaneously
pid_max limits the identifier assigned to processes
threads-max limits ...
1
vote
Can ps display only non kernel processes on Linux?
Although the question has aged a bit, there is an interesting new approach: Since version 4 of the procps package, you can set the environment variable LIBPROC_HIDE_KERNEL. If set, ps(1) and top(1) ...
1
vote
Accepted
How could we get the USS of a process
The answer to Getting information about a process' memory usage from /proc/pid/smaps includes the instruction to do so. It doesn't hand out the exact command for USS specifically, but it provides all ...
Top 50 recent answers are included
Related Tags
process × 2637linux × 730
bash × 265
kill × 263
ps × 191
shell × 182
shell-script × 145
memory × 115
process-management × 111
background-process × 107
signals × 97
top × 93
command-line × 91
kernel × 90
cpu × 90
linux-kernel × 89
monitoring × 80
terminal × 78
proc × 75
ubuntu × 68
fork × 61
files × 60
networking × 58
thread × 54
ssh × 53