monitoring 'waiting' processes


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers monitoring 'waiting' processes
# 1  
Old 08-07-2008
monitoring 'waiting' processes

Is it possible to monitor processes whether they are waiting or active? Basically I would like to know since which TIME the process has been running and the state.

Smilie
# 2  
Old 08-07-2008
Code:
top

command.
# 3  
Old 08-07-2008
processes

Quote:
Originally Posted by ynilesh
Code:
top

command.
I meant...
1. how do I distinguish between active and waiting processes?
2. within man ps I brought up a few options say, TIME but I'm not sure how to use them, any ideas?
3. how do I query 'zombie' processes?
Smilie

OSs
------------
Linux Based i.e. CentOS 4.x, RedHat Linux (various versions)
Solaris 5.10

Last edited by jon80; 08-07-2008 at 02:16 PM.. Reason: update #1
# 4  
Old 08-07-2008
Quote:
3. how do I query 'zombie' processes?
Depending on the ps/OS zombies are either listed as <defunct> (on most Unices),
or simply as zombie.
You cannot query them because these are already dead (finished) processes
whose parent procs already exited without caring for their exit status.
The occurrence of zombies is most of the times an indication of badly
programmed applications.
You should at least file a bug report with their developers,
but even better not use these programs anymore.
Because zombies are already dead
they take up no resources only a slot in the process table,
which indeed can become a massive problem if a berserk application
is producing lots of them so that the total number of slots in the system's
process table gets filled up.
When this finally happens your only choice is a system reboot.
That's why zombies are sign of bad programming.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

2. Shell Programming and Scripting

Executing multiple processes without waiting for their exit status.

Hello Friends, Hope you are doing well. I just need a help in executing multiple processes. I've written a shell script which calls another scritps. But the problem is there are too many processes to run, and each process takes about a min to finish its execution. So, I want to just... (3 Replies)
Discussion started by: singh.chandan18
3 Replies

3. UNIX for Advanced & Expert Users

Monitoring cpu usage of mysql processes/threads/queries without any tool

hi all, i want to monitor mysql processes/threads/queries with respect to cpu usage.how can i do it? show processlist is of no use as no information abt cpu usage is given. plz help (7 Replies)
Discussion started by: rohitmahambre
7 Replies

4. Shell Programming and Scripting

Cron job for monitoring processes

I have to monitor several processes in my application . i get the listing of these processes using the command ps -ax i want to write a shell script that will monitor the processes and if a process goes missing then it will send an email to my gmail account. I want to run this... (6 Replies)
Discussion started by: asalman.qazi
6 Replies

5. Programming

Need C program for monitoring a processes that are running in different nodes

Hey, I am doing a high availability project. I need coding(socket programming using C) to monitor processes that are running in different nodes with in a network cluster.At last if u could give me a program in C to monitor the process(whether it is running or failed),it would be very... (2 Replies)
Discussion started by: vigneshinbox
2 Replies

6. Solaris

Identifying and grouping OS processes and APP processes

Hi Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages. Any free tools or scripts to do this? Many thanks. (2 Replies)
Discussion started by: wilsonee
2 Replies

7. UNIX for Advanced & Expert Users

Monitoring Processes - Killing hung processes

Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go? Thank you Richard (4 Replies)
Discussion started by: ukndoit
4 Replies

8. Shell Programming and Scripting

monitoring running processes

I have a script that runs continuously and will deliver a file to multiple servers via scp. On occasions one of the scp's will hang and as a result not complete in sending the remaining files and not loop around again. If I run the scp commands with a & they'll complete, but I want to make sure... (2 Replies)
Discussion started by: nhatch
2 Replies

9. Shell Programming and Scripting

Monitoring processes of another host

Does anyone have a script, which monitors the processes of another host? (5 Replies)
Discussion started by: Andimotz80
5 Replies
Login or Register to Ask a Question