Questions tagged [ps]

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

127 questions
1
vote
1 answer

In the output of ps(1) on OS X-like systems, what do processes listed in parentheses mean, and how do I kill them?

username@yosemite ~ % ps wwwaux | grep java username 48111 0.0 0.0 0 0 ?? ?E 11:54AM 0:00.00 (java) username 91673 0.0 0.0 2432772 508 s006 R+ 3:19PM 0:00.00 grep java username 90809 0.0 0.0…
javanix
  • 247
  • 4
  • 15
1
vote
0 answers

"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 httpd will increase quickly.
watchmansky
  • 769
  • 4
  • 10
  • 17
1
vote
5 answers

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…
user3789893
  • 11
  • 1
  • 4
1
vote
2 answers

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 case we have Solaris OS. What the same concept on…
maihabunash
  • 443
  • 1
  • 11
  • 25
1
vote
3 answers

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 what the ps syntax for Solaris?
maihabunash
  • 443
  • 1
  • 11
  • 25
1
vote
2 answers

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 sh -c, so even I have execute that sleep in the…
Ryan
  • 5,831
  • 24
  • 72
  • 91
1
vote
1 answer

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. The data is in a MySQL database. Part of that data…
Technoh
  • 121
  • 1
  • 3
1
vote
1 answer

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 names (ie ruby process renames its command, pkill…
Adam Gent
  • 260
  • 1
  • 7
1
vote
1 answer

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, 0.13, 0.15 Tasks: 1274 total, 7 running, 1267…
magiza83
  • 83
  • 2
  • 10
1
vote
1 answer

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 it all.) I know could redirect STDERR to /dev/null…
1
vote
2 answers

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 May08 0:00 [kthreadd] root 3 0.0 0.0 …
OJ278
  • 95
  • 1
  • 6
1
vote
0 answers

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 %CPU %MEM VSZ RSS TTY STAT START TIME…
Jake
  • 619
  • 4
  • 7
  • 18
1
vote
2 answers

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: www-data 26487 0.0 0.9 245476 14920 ? Sl 17:32…
quarry32
  • 255
  • 2
  • 11
1
vote
1 answer

ps throws error /proc/PID: No such file or directory

Can you please tell me why "ps auxw" returned me the following error ? /proc/15067: No such file or directory The following is the process which was running at that time and was listed by PS. ftpib 15067 0.0 0.0 3724 344 ? S 22:40…
Supratik
  • 2,154
  • 10
  • 51
  • 66
1
vote
1 answer

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 kill a bunch of stuck programs and restart the…
user255205
  • 11
  • 1
1 2 3
8 9