Questions tagged [ps]
In most Unix-like operating systems, the "ps" program displays the currently-running processes.
22
questions with no upvoted or accepted answers
2
votes
1
answer
70
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
1
answer
271
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 ...
2
votes
0
answers
1k
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
0
answers
90
views
Outdated processes in ps aux
Some servers in the cluster have a lot of irrelevant processes in the process list. There are hundreds of them and some of them are about 2 years old.
root 9903 0.0 0.0 10752 180 ? Ss ...
1
vote
1
answer
490
views
Why does my "ps aux" command column now show gibberish?
While using ps aux to find the PID of a process, I came across some output that prevented me from doing so. I've done this before, on this same server, within the last month. Today's output looked ...
1
vote
1
answer
349
views
Ubuntu ps command showing wrong values in START column
I have just noticed that my server has wrong value in START column of ps 's output. It always display 2017 value, while it should show hour:minute format. The problem is not fixed after I reboot the ...
1
vote
1
answer
701
views
ps sniffing on mysql password
I am passing the password to a mysql connection via a script using :
mysql -u root -p'mypass'
so I can execute task on that line using --execute.
I have seen in many stackexchange forums that ...
1
vote
0
answers
123
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 of ...
1
vote
0
answers
178
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 %...
1
vote
1
answer
249
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
0
answers
79
views
Confusing Memory output from top/ps aux (over 600% memory allocated)
I'm trying to get to the bottom of an issue where the oom-killer is killing certain jobs off on a server. The server has 48GB of physical ram, with 20GB of swap, and I'm trying to find out what ...
0
votes
1
answer
308
views
How to get users running processes without it's username in it?
I'm trying to write all users and their running processes in file using: ps -r -U username -o pid,command,user > up.txt
But I don't need commands that contains users name in it.
How can I filter ...
0
votes
1
answer
1k
views
ps + kworker with state D
we have redhat machines in cluster
redhat version is - 7.2
when we perform
ps ax
on the machine we saw many kworker with state D
example
17165 ? D 0:00 [kworker/u66:1]
2151 ? D 0:58 [...
0
votes
1
answer
172
views
Unable to fork children even after exiting previous ones
I have a CentOS VM on which I'm running a php socket server, that forks on every connection. The child process does its job and then exits.
The parent is also waiting to reap the dead zombie process (...
0
votes
0
answers
787
views
Is there any way to sort processess by UNshared (private) memory use in ps or top?
I've been able to calculate unshared memory use by summing anonymous and stack mappings from pmap -x e.g.
sudo pmap -x $THE_PID |egrep 'anon|stack' | awk '{print $2}' | paste -sd+ | bc
but can't ...
0
votes
0
answers
312
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
0
answers
618
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
1
answer
1k
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
1
answer
451
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
1
answer
206
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: ...
0
votes
1
answer
856
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=$(...
-1
votes
1
answer
3k
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 ...