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

learn more… | top users | synonyms

3
votes
2answers
1k 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 ...
2
votes
1answer
187 views

What's pgrp in this context?

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.) Quoted from here. And what does it ...
1
vote
1answer
400 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 ...
1
vote
1answer
127 views

ps -o pcpu on Debian Squeeze is giving meaningless numbers

I'm trying to get the CPU percentage for processes on a busy server out of ps, but it's giving me nonsensical numbers. Here's a truncated example: $ ps -eo pcpu,pid | sort -n %CPU PID ... 36.5 ...
1
vote
1answer
147 views

Solaris ps output interpretation

I have a program that regularly forks and execs other programs. Occasionally, the programs that it starts get stuck in their processing and new programs never seem to start processing. We eventually ...
0
votes
1answer
501 views

load-causing processes disappearing from “top” ps -o pcpu shows bogus numbers

I administer a large number of servers, and I have this problem only with Ubuntu 10.04 LTS: I run a server under normal load (say load average 3.0 on an 8-core server). The "top" command shows ...
0
votes
1answer
405 views

Enable foreign users processes listing

how can I enable under Debian 6 to list the processes of a foreign user? I have the user nagios but this user can only list his own processes. Br
0
votes
1answer
144 views

After updating debian lenny, ps stops recognising my users

Since upgrading my debian lenny box with apt-get, ps seems to be behaving strangely, and also if i run top i see under the user column the ids, not the names. whoami => foo ps -U foo => ERROR: ...
2
votes
0answers
373 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 ...
1
vote
0answers
157 views

ps and top show a different command name then what pkill and pgrep sees

Often times I want to kill process that I believe has changed its command name (I think through setproctitle() or something similar). Apparent pkill, pgrep, and friends do not read the new command ...
1
vote
0answers
103 views

Where is this extra number coming from in ps aux

A couple of processes returned by ps aux have an extra column. A monitoring tool I'm using is interpreting this as %CPU and reporting huge consumption. Here's the truncated output: USER PID ...
0
votes
0answers
44 views

Nginx - change status code based on grep of process list or similar

We are using nginx as a reverse proxy in our cloud infrastructure, and it's pretty handy. I'd like to use it for something else though. On some of our VMs, there is a process that I need to be able ...
0
votes
0answers
25 views

ps wchan column kernel functions

customerI have a situation were php-fpm stops processing requests, and when I do a ps there are over 200 php-fpm processes in a sig_something_wait. What I am looking for is good resource that lists ...
0
votes
0answers
81 views

Invalid format output from ps etime

We have some scripts that run to detect long running processes. It works using ps and etime e.g ps -eo uid,pid,etime This part works fine except that occasionally we get an etime back with an ...
0
votes
0answers
33 views

different result of counting the number of processes with ps command

Script A : #!/bin/bash cmdname=$1 process_num=$(ps -e | grep $cmdname | wc -l) timestamp=$(date +%s) echo -e "$timestamp\t process_num=$process_num" Script B: #!/bin/bash cmdname=$1 ...