In most Unix-like operating systems, the "ps" program displays the currently-running processes.
Questions tagged [ps]
127 questions
5
votes
2 answers
How do get apache display url request in Top and PS?
Is there a way to get apache to display the url that it is handling in top and ps? This would help us nail down performance issues much more faster.
Thanks.

user76952
- 51
- 1
- 2
5
votes
2 answers
Linux: ps -awx vs. ps -awwx
Does anyone know the difference of ps -awx vs. ps -awwx?
I'm tracking down some processes, and I see significantly more information when I add an additional "w". Does this work like in other cases (such as SSH debugging) when you issue multiple…

drewrockshard
- 1,763
- 4
- 20
- 27
4
votes
1 answer
extra sshd root instance
I have logged in to my server running Centos 7 via ssh and executed the following command:
[me@server ~]$ ps -ef --forest | grep ssh
root 476 1 0 Dec02 ? 00:00:00 /usr/sbin/sshd -D
root 12366 476 0 23:26 ? 00:00:00 \_…

Skeeve
- 195
- 2
- 7
4
votes
2 answers
ps show column name
Using these ps options I cut 10 lines and order output of ps by cpu usage (pcpu):
ps -eo pcpu,etime,pid,user,args --no-headers| sort -t. -nk1,2 -k4,4 -r |head -n 10
I need also show the name of columns (like same commands without cutting the…

watchmansky
- 769
- 4
- 10
- 17
4
votes
1 answer
Docker memory leak?
I'm running Docker 0.9.0
uname -a
Linux 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
I have 40 containers running at once. Each container is fairly simple - it runs a snippet of code in a Node…

Ryan Hewitt
- 41
- 1
- 3
4
votes
2 answers
How to filter out default system processes with ps?
Is there a way to get a list of running processes on a Linux system, minus the default ones running on every system (i.e. only the ones that were installed/executed after the fact).
Can this be accomplished with ps, or any similar tool?
Thanks

ddario
- 511
- 1
- 3
- 12
4
votes
1 answer
How to get /proc/[pid]/cmdline to contain command arguments?
I am running into an issue where some of my Ubuntu/Debian servers do not show the arguments passed to rake in either top or ps. I have tracked this problem down to a variation in output given by /proc/[pid]/cmdline. This is the file that seems to…

wbharding
- 431
- 1
- 4
- 8
4
votes
2 answers
ps returning unreasonably high values for %cpu and cputime
We've had an alert from Nagios on one of our servers that we have a runaway process. Logging in and running top doesn't show anything bad happening, but when I look at the output of ps I see something odd:
oxygen@mail-1:~$ ps -e -o %cpu,comm,cputime…

alt
- 497
- 2
- 6
- 15
4
votes
4 answers
Who is 1014? I have no user on my system named 1014, so why is this httpd process run as 1014?
[root@home ~]# ps au | grep httpd
1014 9701 0.0 0.2 281620 3124 pts/24 Sl+ 18:41 0:00 ./bin/httpd -X
root 9742 0.0 0.0 3084 720 pts/22 R+ 18:45 0:00 grep httpd
By the way, what do Sl+ and R+ mean?
Is 1014 a hacker? Why…

giantforest
- 239
- 1
- 4
- 15
4
votes
1 answer
What's pgrp in this context?
Quoted from here.
gdb puts the debugged process in its
own pgrp and sets the terminal to that
pgrp. (Try e.g. ps j on the PIDs of
gdb and your program being debugged.)
And what does it mean by
ps j on the PIDs of gdb and your program…

locale
- 383
- 2
- 4
- 10
4
votes
2 answers
Weird process CPU time output on Ubuntu under Amazon EC2
I have just started a large instance using ami-fa01f193 AMI. When I use ps aux, a bunch of random processes will show HUGE numbers for the CPU time used. Looks like some sort of overflow. Did someone see this before and how do I fix this?
Here is a…

Mad Wombat
- 155
- 6
4
votes
4 answers
Is one type of options to ps preferred?
GNU ps supports BSD-style options, UNIX-style options, and GNU long options. Is using one of these types (in scripts and at the command line) preferred over the others?
I get the impression from the manpage that the functionality of the option…

Jim Hunziker
- 1,852
- 4
- 17
- 18
3
votes
1 answer
ps command output does not display wchan values in fedora
I am running fedora 5.3.12-200.fc30.x86_64 and testing simple tcp client/server codes. I tried running different ps commands but I can not get any value displayed in wchan field, although in my case both server and client are in suspended states.…

Зоран Пантић
- 56
- 5
3
votes
3 answers
How to change time format to seconds in ps -p?
I wrote a rsync script which also checks for how long the process of the script has been running.
This is the relevant part:
time=$(ps -p $processid -o etime= | awk -F: '{print $2}') # number of seconds the process is running.
if [ $(ps -ef | grep…

Itai Ganot
- 10,644
- 29
- 93
- 146
3
votes
1 answer
Linux: ps command's output is randomly different than expected, can you find the reason?
I wrote a Nagios check which counts how many pgpool processes are running and how long each process runs.
I'm running on Linux CentOS 6.4
In order to get the time the process is running, I'm using the next command:
ps -p PID -o…

Itai Ganot
- 10,644
- 29
- 93
- 146