In most Unix-like operating systems, the "ps" program displays the currently-running processes.

learn more… | top users | synonyms

41
votes
6answers
8k views

How to prevent “ps” reporting its own process?

$ ps | grep django 28006 ttys004 0:01.12 /usr/bin/python bin/django celeryd --beat 51393 ttys005 0:01.45 /usr/bin/python bin/django celeryd -l INFO 51472 ttys005 0:01.29 /usr/bin/python ...
39
votes
3answers
22k views

Show full process name in top

I'm running a rails stack on ubuntu. When I ps -AF, I get a descriptive process name set by the apache module like 00:00:43 Rails: /var/www... which is really helpful in diagnosing load issues. ...
16
votes
1answer
22k views

what s+ S1+ T R+ mean in ps ax ps list

I run this command and got result this but not able to understand the result which node instance should i kill ps ax | grep node 23308 pts/3 S+ 0:00 sudo node index.js 23310 pts/3 Sl+ ...
13
votes
2answers
7k views

How is memory usage reported in Linux?

Using ps, I can see the size, the vsize (same as top's VIRT?), and the rss (same as top's RES?). (One more I see in top is SHR.) Could someone summarize for me what these different fields mean?
7
votes
3answers
6k views

Monitor all newly spawned processes on a Linux machine

Sometimes a process comes and goes faster than I can ps aux, I tried watch -d -n0.1 "ps aux | tail" but again, that's restricted to 1/10th of a second. What I really want is to run a command and ...
6
votes
1answer
5k views

What is causing these flush processes?

What are these flush processes? $ ps aux | grep flush root 710 0.0 0.0 0 0 ? S 2012 2:29 [flush-202:1] root 10732 6.2 0.0 0 0 ? S Apr14 453:33 ...
5
votes
1answer
782 views

When using ps with a user-defined format, how do I get a column with unlimited width?

I'm using ps with the user-defined format as shown below: $ ps ax -o pid,args,psr,pcpu | grep python 2236 /usr/bin/python2.7 -u /home 2 0.0 2452 /usr/bin/python /usr/lib/un 2 0.0 2480 ...
4
votes
2answers
2k views

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 ...
4
votes
1answer
3k views

CPU% more than 100 in ps -aux

We use ps -aux to find out when tomcat process takes high CPU utilization, if that so we will send a alert to Group. But some times %CPU shows more than 100, but our application working fine. Is it ...
4
votes
4answers
280 views

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 ...
4
votes
2answers
3k views

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.
4
votes
4answers
161 views

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 ...
4
votes
1answer
8k views

busybox - how to list process priority?

How to list process priority on an embedded linux with busybox?
4
votes
2answers
1k views

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 ...
4
votes
2answers
2k views

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 ...
3
votes
4answers
218 views

I want to find something and kill it

I keep running these two commands over and over: $ ps aux | grep php | grep -v grep www-data 3663 100 14.8 328620 304900 ? R 12:56 0:54 php /home/jason/projects/mcif/./symfony ...
3
votes
3answers
830 views

How do I kill a runaway cronjob

I have a cronjob that is set to run constantly. It's a php file that streams data from twitter. However twitter goes down every once a while or we lose connection so I have cron checking back every ...
3
votes
1answer
1k views

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 ...
3
votes
1answer
8k views

D+ status in ps output

Is there any difference between D, Ds and D+ status of process from the ps output $ ps -e -o pid,stat,comm,wchan=WIDE-WCHAN-COLUMN | grep D PID STAT COMMAND WIDE-WCHAN-COLUMN 12987 D+ du ...
3
votes
1answer
854 views

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 ...
3
votes
2answers
555 views

Command referenced in `ps aux` doesn't exist?

When I run ps aux | grep /usr/local/apache/bin/httpd I get the following output. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND www-data 9837 0.0 0.0 23112 1360 ? ...
3
votes
2answers
378 views

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 ...
2
votes
1answer
491 views

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 ...
2
votes
1answer
422 views

Find site of apache from linux process table

I am using Ubuntu server and when I run ps aux I get the following process table http://pastebin.com/NJsASBek as we can see apache proceess are shown like this: www-data 26487 0.0 0.9 245476 14920 ...
2
votes
2answers
418 views

Where does the name in the “COMMAND” field of `ps aux` come from?

I understand it displays the command with arguments, or when unavailable the command in square brackets. But where do the names come from for processes such as passenger worker ruby instances, which ...
2
votes
1answer
354 views

ps is giving a segmentation fault

I'm getting a segmentation fault when I try to run a simple "ps aux" for a certain user. If I run as root or another user it runs well. So I think is something related with ulimits, but I think that ...
2
votes
1answer
659 views

top, w, ps showing wrong CPU times

I've spotted this trait recently on some of my Ubuntu servers (10.04.2) on Amazon EC2 (not noticed this on any physical boxes), and can't quite comprehend how it's getting these figures. They can't be ...
2
votes
1answer
415 views

How to find full process arguments and associated listening ports?

I can execute netstat -atulpn | grep java to find all Java processes with their accompanying ports, which is great, however I would like to also have the processes full execution arguments also shown. ...
2
votes
1answer
705 views

what is khostd?

I see this process but can't seem to find anything about it on Google: init─┬─crond ├─dbus-daemon ├─events/0 ├─events/1 ├─httpd───8*[httpd] ├─khelper ├─khostd───khostd ...
2
votes
1answer
300 views

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 ...
2
votes
2answers
341 views

Determine from where is “sh” being run under apache www-data user using using PF or NETSTAT [duplicate]

I am working with a compromised Ubuntu 8.04 Plesk 9.5.4 server. It seems that a script on the server is continuously doing reverse lookups to random IPs on the Internet. I first spotted it during by ...
2
votes
1answer
1k views

List environment variables of a running process on AIX without character limit

Today I was trying to debug an issue where a process was not picking up the correct environmental variable. It took us hours before we realized that it wasn't picking up the correct variable. I tried ...
2
votes
1answer
577 views

Nginx/php-fpm processes falls in Uninterruptible sleep

I got nagios critical warning about a server, and when i checked ps -aux i found that all of nginx (php-fpm) are in Uninterruptible sleep www-data 1330 0.4 0.3 299992 108560 ? D 16:06 ...
2
votes
1answer
47 views

How to spec VM requirements based on historical data of transient processes on Linux?

I've been given a task to break apart the services on one of our main VMs (Amazon EC2) and appropriate additional VMs to suit the services needs. The type of services that I am dealing with are ...
2
votes
0answers
605 views

cygwin's ps -W doesn't show all processes when running through an ssh session

I hope this is the right place to ask this question: I have two machines (Win7) running cygwin. Machine A connects to Machine B through an ssh session. When I run ps -W in the ssh terminal on A, the ...
2
votes
2answers
223 views

Provide Description for a Command for 'ps' Command Visibility

So the problem I want to find a tidy solution for is that when I log into a server (I have some Solaris and RHEL instances about), I try to find out what applications are running: $ ps -auxww | grep ...
1
vote
5answers
363 views

What does “-k start” mean in the output of ps command

I try to run an apache instance. It doesn't run properly. I am trying to get some diagnostic information. I gave ps command and the apache instance that don't run properly are output with -k start. ...
1
vote
2answers
1k views

In Linux, when I use the PS command, why do I see multiple lines for www-data?

I have a LAMP server that uses ubuntu 9.10, apache2, mysql5 and php5. When I login as root through the shell, I run a "ps aux" command and see something like the following www-data 3151 0.1 4.3 ...
1
vote
2answers
316 views

How may I know the amount of memory used by each one of my apache sites?

When I run ps aux I get the following process table http://pastebin.com/NJsASBek that shows how much memory is being used by each one of the subprocess. We can see apache proceess are shown like this: ...
1
vote
2answers
8k views

Who is user 500?

after runnning ps aux command I see this line 500 23931 0.0 0.6 63764 6880 ? S 08:49 0:01 /usr/sbin/sw-cp-serverd -f /etc/sw-cp-server/config I'm a beginner in this whole vps ...
1
vote
4answers
16k views

Getting full path of executables in ps auxwww output

Consider the following lines from a "ps auxwww" output: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 4262 0.0 0,1 76592 1104 s005 Ss 10:02am ...
1
vote
2answers
192 views

How to get the path details from the proccess ID?

In order to see the path of the running process 25014 I do on Linux the following: ls -l /proc/25014/exe Output: lrwxrwxrwx 1 root root 0 Mar 9 16:35 /proc/25014/exe -> /etc/syscconfig In ...
1
vote
2answers
621 views

Wchan section in ps output not showing anything

I know that if a process go into D state then it means that it is in uninterruptable state. The process can not be killed by any signal. It will only come out of that state on reboot or if I/O wait is ...
1
vote
1answer
866 views

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 ...
1
vote
1answer
78 views

how to get running processes

I'm trying to get running processes from a linux server but I having some doubts. If I get top exit I have: # top -b -n1 | head -n5 top - 16:18:19 up 60 days, 21:22, 8 users, load average: 0.03, ...
1
vote
1answer
39 views

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 ...
1
vote
2answers
5k views

Fork a process inside a bash shell script

I've a simple shell script like #!/bin/bash sh -c "sleep 60" & exec sleep 120 In using the pstree command, I found something like `-sleep(11681)---sleep(11682) The first sleep is due to the ...
1
vote
4answers
2k views

“ps -ew” won't show wide output

It only shows the first 15 characters from /proc/pid/stat. But "ps -w pid" shows wide output. Why? Is this a bug? Thanks.
1
vote
4answers
1k views

ps aux as non-root doesn't show all processes

i'm using an ubuntu 10.04 server... when i run ps aux as root i see all processes when i run ps aux as nonroot i see JUST the processes of the current user after a bit of research i found the ...
1
vote
4answers
2k views

Can 'ps' show me only all processes I own, plus all their ancestors, in tree format?

Here's what I want to do: I want to get a tree-formatted list of processes from ps (as when you do ps auxwwf), but only of processes that are either owned by me, or are ancestors of processes owned by ...