Questions tagged [ps]

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

127 questions
3
votes
1 answer

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 to list them using the solution here:…
user606723
  • 544
  • 1
  • 4
  • 10
3
votes
2 answers

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 ? S Oct15 0:00 /usr/local/apache/bin/httpd…
Citricguy
  • 166
  • 1
  • 1
  • 9
3
votes
1 answer

top, w, ps showing wrong CPU times

I've spotted this trait recently on some of my Ubuntu servers (10.04.2) on Amazon EC2 (not noticed this on any physical boxes), and can't quite comprehend how it's getting these figures. They can't be real, because I'm sure computers haven't been…
dannosaur
  • 983
  • 5
  • 15
3
votes
3 answers

How do I kill a runaway cronjob

I have a cronjob that is set to run constantly. It's a php file that streams data from twitter. However twitter goes down every once a while or we lose connection so I have cron checking back every minute to try and run the file. The php script…
Caimen
  • 133
  • 6
3
votes
4 answers

I want to find something and kill it

I keep running these two commands over and over: $ ps aux | grep php | grep -v grep www-data 3663 100 14.8 328620 304900 ? R 12:56 0:54 php /home/jason/projects/mcif/./symfony import:process --id=91 jason@gob:~/projects/mcif$ sudo kill…
Jason Swett
  • 1,468
  • 5
  • 23
  • 37
3
votes
3 answers

Identify processes running inside Docker, in Process List

I realize that processes that run inside Docker containers appear on the hosts' process list: # ps aux | grep mariadb root 12486 0.0 0.0 112812 976 pts/0 S+ 14:47 0:00 grep --color=auto mariadb Is there a way to identify whether a…
Nuno
  • 553
  • 2
  • 8
  • 26
2
votes
1 answer

Enter-PSSession : Connecting to remote server failed

I have three VMs: A, B and C. I use Enter-PSSession to connect them. But recently connecting B from A (A->B) never succeeds. Others ways (A->C, C->A, B->A, B->C, C->B) have no problem. The error message: Enter-PSSession : Connecting to remote server…
liupro925
  • 31
  • 4
2
votes
1 answer

AWS / EC2 / Ubuntu 16.04: apache2 processes although apache is not installed?

I created an AWS Ubuntu 16.04 EC2 instance a while ago and had it running for some time not really doing anything. Now as I try to bring that machine bring to service, I notice a few things I can not explain: username@hostname:~$ ps aux | grep…
ssc
  • 1,159
  • 3
  • 17
  • 30
2
votes
1 answer

Process claims to use a lot of memory, but 'free' indicates that the memory is still free

I've seen the opposite of this, but this is puzzling. In short, I have a process where %MEM claims to use 74% of memory when using 'ps' and 'top'. However, 'free' shows that I'm only using 32% of the available memory. Here is this output of…
2
votes
1 answer

how to find Linux processes started at a certain time

I am trying to debug Linux vnc session that is not responding. I think I clicked the KDE konsole icon and that is when the vnc session became frozen. I can see the windows and menu in KDE but nothing responds. I am wondering if i could know the…
user2979872
  • 123
  • 3
2
votes
1 answer

ps is giving a segmentation fault

I'm getting a segmentation fault when I try to run a simple "ps aux" for a certain user. If I run as root or another user it runs well. So I think is something related with ulimits, but I think that those parameters are enough: bash-4.1$ ulimit…
julian
  • 153
  • 7
2
votes
1 answer

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 mostly php cronjobs, that coincide with our web…
Mike
  • 21
  • 1
2
votes
2 answers

Determine from where is "sh" being run under apache www-data user using using PF or NETSTAT

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 using top and then noticed flashes of this coming…
2
votes
1 answer

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 26403 38.6 28295 39.0 11741 42.6 11736 58.6…
regularfry
  • 215
  • 2
  • 11
2
votes
1 answer

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 0:16 php-fpm: pool www www-data 1338 0.4 0.2…
Alaa Alomari
  • 638
  • 6
  • 19
  • 37
1 2
3
8 9