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

learn more… | top users | synonyms

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 ...
1
vote
1answer
173 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
158 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
57 views

is there a way to pretty print the output of “ps” to include the “rss” memory value?

I have a python script which takes in processes in csv format and decides things based on what's running, it's name, and how much cpu time it's using. I would like to add processes that also use lots ...
0
votes
1answer
764 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
414 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
163 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
627 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
18 views

ps output is not correlated to free command?

I am getting sum of all reserved memory in KBs by using following command:- ps aux --sort -rss | awk '{sum +=$6} END {print sum}' OUTPUT: 14746220 i.e. 14.74GB However free -g returns 27GB as used. ...
1
vote
0answers
58 views

“normal” number of processes/threads

Considering a standard LAMP server (aka webhosting) what should be a limit at number of processes/thread? ps -elfT | wc -l 475 "Limit" I mean: on DDOS probably the numbers of children-processes ...
1
vote
0answers
117 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
101 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
293 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
250 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 process_num=$(...