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
Filter by
Sorted by
Tagged with
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 ...
Mike's user avatar
  • 21
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 ...
regularfry's user avatar
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 ...
0x4B1D's user avatar
  • 141
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 ...
Mystic's user avatar
  • 23
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 ...
Robert K's user avatar
  • 592
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 ...
Lan Pham's user avatar
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 ...
Simon Ernesto Cardenas Zarate's user avatar
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 ...
watchmansky's user avatar
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 %...
Jake's user avatar
  • 631
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 ...
user255205's user avatar
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 ...
sleepysysadmin's user avatar
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 ...
FeoJun's user avatar
  • 1
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 [...
shalom's user avatar
  • 501
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 (...
Dushyant Bangal's user avatar
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 ...
Craig Ringer's user avatar
  • 11.2k
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 ...
SamBarham's user avatar
  • 143
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 ...
Ryaner's user avatar
  • 3,127
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 ...
Alec Matusis's user avatar
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
TheFox's user avatar
  • 101
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: ...
William Coates's user avatar
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=$(...
hywl51's user avatar
  • 101
-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 ...
Rusty Weber's user avatar