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

learn more… | top users | synonyms

1
vote
0answers
19 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
5answers
42 views

Get the pid if 2 tomcat(s) is running

I have 2 tomcat's running, how do I get the pid if both have similar names? ps -ef | grep java root 12952 1 0 10:01 pts/0 00:00:03 /usr/lib/jvm/jre/bin/java ...
2
votes
2answers
39 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
1answer
31 views

how to view all process details from ps –ef command

hi all I am using the ack.pl in my bash script to search IP's in the Linux OS only for example , and only to show the problem I will give here short example # ( ./ack.pl -Q -a -l --max-count=1 ...
1
vote
1answer
39 views

How can I know the absolute path of a running process? on solaris

this is the command to view the process path on Linux ps -auxwe | grep 24466 ( 24466 is only example ) but please advice is it possible to view the path of running process on Solaris if yes ...
3
votes
0answers
31 views

What does the suffix letter mean in the PRI column of “ps -M pid” under MacOS/X? [migrated]

When I execute this command under MacOS/X: ps -M 9358 I get this output: USER PID TT %CPU STAT PRI STIME UTIME COMMAND jaf 9358 s009 0.0 S 31T 0:00.21 0:00.32 ...
2
votes
1answer
393 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
34 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 ...
0
votes
1answer
79 views

Script that checks and runs a jar, sometimes runs it twice.

I jave written a small bash script to run every 10 minutes, check if a certain program is running and if not run it. However, I noticed that sometimes I have two instances of the same program running ...
0
votes
0answers
68 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
1answer
135 views

Cron job running twice

I have a ubuntu linux ec2 instance running on AWS. Upon entering the command ps -ef to view all currently running processed, I see root 2346 944 0 06:08 ? 00:00:00 CRON ubuntu 2347 ...
0
votes
0answers
46 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
142 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 ...
1
vote
1answer
3k 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 ...
0
votes
1answer
484 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 ...
1
vote
1answer
111 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. ...
0
votes
0answers
57 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 ...
2
votes
2answers
228 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 ...
1
vote
1answer
272 views

Why does a suspended process show high CPU usage in ps?

Sometimes when a process is suspended (in T state) the output of ps shows the process using an unusual amount of CPU%. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND cossey ...
0
votes
1answer
80 views

Identifying particular node processes in htop

I have a app that starts a number of nodeJs processes. The processes are not all running the same JS code, there are about three types of 'roles' for the processes. Currently if I run something like ...
0
votes
1answer
29 views

Monitoring Port Requests for Command

I have a command which I am running that starts a process listening on a port. I am currently getting the following error. socket exception: Address already in use The problem is, I don't know what ...
0
votes
1answer
157 views

Accurately get memory usage on Linux

I am trying to incorporate this feature into a script I am writing. From what I understand "free -m" does not report accurately. From what I understand the memory is used, Linux does not "free" it ...
4
votes
1answer
1k 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 ...
2
votes
1answer
4k 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 ...
0
votes
2answers
271 views

Getting Running Script Names Via PS

I need to get a list of all running PHP scripts but piping PS thru grep just gives me a list of all references to PHP files How do I accomplish this? Is this even possible? ...
0
votes
1answer
115 views

Finding out total PHP usage in MB's

I'm trying to find out total memory used by all PHP processes on my CentOS server. After some grepping and awking this is my final command. ps -e | grep php | awk '{print $1}' | xargs pmap | grep ...
1
vote
1answer
228 views

What could cause a PHP script run as a cron job to end up in D state?

My server is running Ubuntu 12.04 LTS (precise) and I'm having a weird issue. The server is hosting a large website which is used for data collection. The website is in PHP and uses Zend Framework. ...
6
votes
1answer
3k 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
337 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 ...
3
votes
2answers
206 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 ...
1
vote
1answer
642 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
636 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 ...
4
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 ...
-1
votes
3answers
121 views

How to solve memory issues in Linux

How to get details of a process that is taking RAM. From top command i have found that Mysql is taking too much ram how can i know why Mysql is taking too much ram far from usual behavior? Is there ...
3
votes
2answers
394 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 ? ...
1
vote
0answers
169 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
1answer
61 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
586 views

How to remove the hint in the terminal?

As a normal user , when I run some command like ps\netstat, the terminal hint me: (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see ...
1
vote
1answer
133 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 ...
4
votes
4answers
260 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 ...
0
votes
1answer
569 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 ...
2
votes
1answer
433 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
0answers
432 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
2answers
5k views

ps shows that migration/* processes consume a lot of CPU, but top keep silence about them

here is the result of ps command, shown only first 10 lines ps aufx | head USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2 0.0 0.0 0 0 ? S ...
0
votes
1answer
1k views

RHEL/Apache - meaning of WCHAN=“semtim”

What is the meaning of WCHAN="semtim"? ps -ylC httpd S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD S 0 25330 1 0 78 0 16168 170563 - ? 00:00:14 httpd R ...
1
vote
0answers
108 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
1answer
408 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
198 views

Why doesn't ps resolve usernames including dashes

On Debian and Ubuntu (probably on other GNU systems too), when ps lists a process' user, it normally resolves its name, but when a process is running as a user which has a dash in its name, the user's ...
1
vote
2answers
266 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: ...
2
votes
1answer
363 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 ...