1
vote
1answer
196 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. ...
1
vote
1answer
305 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
537 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 ...
1
vote
0answers
155 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
58 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
125 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 ...
0
votes
1answer
926 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 ...
0
votes
1answer
404 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
33
votes
5answers
4k views

How to prevent “ps” reporting its own process?

$ ps | grep django 28006 ttys004 0:01.12 /usr/bin/python bin/django celeryd --beat 51393 ttys005 0:01.45 /usr/bin/python bin/django celeryd -l INFO 51472 ttys005 0:01.29 /usr/bin/python ...
2
votes
2answers
327 views

Where does the name in the “COMMAND” field of `ps aux` come from?

I understand it displays the command with arguments, or when unavailable the command in square brackets. But where do the names come from for processes such as passenger worker ruby instances, which ...
4
votes
2answers
665 views

Linux: ps -awx vs. ps -awwx

Does anyone know the difference of ps -awx vs. ps -awwx? I'm tracking down some processes, and I see significantly more information when I add an additional "w". Does this work like in other cases ...
1
vote
4answers
744 views

ps aux as non-root doesn't show all processes

i'm using an ubuntu 10.04 server... when i run ps aux as root i see all processes when i run ps aux as nonroot i see JUST the processes of the current user after a bit of research i found the ...
3
votes
2answers
3k views

Monitor all newly spawned processes on a Linux machine

Sometimes a process comes and goes faster than I can ps aux, I tried watch -d -n0.1 "ps aux | tail" but again, that's restricted to 1/10th of a second. What I really want is to run a command and ...
15
votes
3answers
8k views

Show full process name in top

I'm running a rails stack on ubuntu. When I ps -AF, I get a descriptive process name set by the apache module like 00:00:43 Rails: /var/www... which is really helpful in diagnosing load issues. ...
2
votes
2answers
210 views

Provide Description for a Command for 'ps' Command Visibility

So the problem I want to find a tidy solution for is that when I log into a server (I have some Solaris and RHEL instances about), I try to find out what applications are running: $ ps -auxww | grep ...
1
vote
4answers
8k views

Getting full path of executables in ps auxwww output

Consider the following lines from a "ps auxwww" output: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 4262 0.0 0,1 76592 1104 s005 Ss 10:02am ...