to understand stopped process in top


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users to understand stopped process in top
# 1  
Old 06-11-2008
to understand stopped process in top

Hi,


top process is shows like this in solaris server oracle 8i running:

load averages: 5.01, 3.35, 2.82 18:24:45
344 processes: 332 sleeping, 5 running, 2 stopped, 5 on cpu
CPU states: 22.2% idle, 29.6% user, 14.7% kernel, 33.5% iowait, 0.0% swap
Memory: 8192M real, 1450M free, 4922M swap in use, 3965M swap free

PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
18219 oracle 11 10 0 0K 0K cpu/3 39:06 12.50% oracle
24836 oracle 1 59 0 0K 0K cpu/2 0:11 7.71% oracle
10385 oracle 11 60 0 0K 0K sleep 27:32 4.13% oracle
8840 oracle 26 59 0 0K 0K sleep 54:17 2.40% oracle
8843 oracle 23 59 0 0K 0K sleep 30:04 1.54% oracle
13164 oracle 23 59 0 0K 0K sleep 8:13 1.52% oracle
8845 oracle 24 59 0 0K 0K sleep 15:48 1.49% oracle
19785 oracle 11 59 0 0K 0K cpu/3 71:07 1.14% oracle
19621 oracle 1 59 0 0K 0K sleep 71:35 1.04% oracle
18235 oracle 1 59 0 0K 0K sleep 1:14 0.91% oracle
19787 oracle 11 59 0 0K 0K sleep 71:02 0.88% oracle
19789 oracle 11 59 0 0K 0K sleep 70:59 0.86% oracle
20984 oracle 11 59 0 0K 0K sleep 1:38 0.63% oracle
26424 oracle 12 59 0 0K 0K run 841:09 0.61% oracle
18269 oracle 11 59 0 0K 0K sleep 1:19 0.57% oracle

i want to know what is this stopped process can i identify pid of these 2 process.

Regards

Prakash
# 2  
Old 06-11-2008
try this as a starter:
Code:
 top -f t.lis -n 32767
 grep stop t.lis

# 3  
Old 06-12-2008
Hi,

need urgent if any body help me to out to understand it is greate full.


Regards

Prakash
# 4  
Old 06-12-2008
Did you try what Jim suggested?

Some output formats from top contain the process status; finding the ones which are stopped amounts to grepping for that field value. On my Ubuntu, top -b -n 1 | awk '$8 == "T"' does this, but on Solaris, I guess you need different options, and the output is probably slightly different, too. Based on your output sample, I guess top | awk '$8 == "stop"' might work, possibly with some additional options to make top only run once. Or try a similar list from ps
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Database replication process stopped in server

Hi, A database (Oracle) replication process was executed by the DBA team in one server (serverX). However, this replication process gets terminated, and there are no errors in the replication log. But there is error in the OS log files (syslog.log) : Aug 8 16:51:47 L28dre02 sshd: subsystem... (1 Reply)
Discussion started by: anaigini45
1 Replies

2. Solaris

Trying to understand the boot process

I understand the OBP program looks for the boot-device, loads the bootblk (located on physical disk sectors 1 through 15). Then the secondary boot program, /platform/`arch -k`/ufsboot is run. This program loads the kernel core image files (genunix and unix). So how does it uses the ufsboot and... (1 Reply)
Discussion started by: MR.bean
1 Replies

3. UNIX for Advanced & Expert Users

Killing A Stopped Process

UNIX Tutorial Five % kill %jobnumber Does that not work on a stopped process? I've tried to kill a stopped process and it is not working. Or do you need a certain type of shell for this to work? I don't see anything about this in my man pages. (3 Replies)
Discussion started by: cokedude
3 Replies

4. UNIX for Dummies Questions & Answers

Process stopped: WCHAN pipe_w

Hi. Before throwing my question, thanks to everybody for paying attention. Sorry if my english isn't good enough, but it's not my mother tongue. That's my question: I have a java program that throws an external program with "Process p = Runtime.getRuntime.exec(***)". The communication between... (2 Replies)
Discussion started by: jlopezperez
2 Replies

5. Shell Programming and Scripting

Why the nohup-ed background process always is "stopped" ?

I let a script A call script B. I used nohup a.sh &>/tmp/log & In script A it calls B directly, without any redirecting or nohup or background. However A is always "Stopped", while B is running correctly. Anybody knows why? thanks! -----Post Update----- BTW, if I don't use nohup... (4 Replies)
Discussion started by: meili100
4 Replies

6. UNIX for Advanced & Expert Users

Why the nohup-ed background process always is "stopped" ?

I let a script A call script B. I used nohup a.sh &>/tmp/log & In script A it calls B directly, without any redirecting or nohup or background. However A is always "Stopped", while B is running correctly. Anybody knows why? thanks! -----Post Update----- BTW, if I don't use nohup... (1 Reply)
Discussion started by: meili100
1 Replies

7. Shell Programming and Scripting

help needed to understand the process entry in ps -ef

Hi Guys, I am running a script which will refresh the views in my database. After running the script, when i ran ps -ef | grep "script_name" I found there are two entries for the same script process (actually 3 including the grep process). /bin/ksh path/scriptname sh -c... (4 Replies)
Discussion started by: mac4rfree
4 Replies

8. Shell Programming and Scripting

perl - understand process status and continue the code execution

Hello, I need advice on how to check if started processes are finished in perl, here's explanation : OS is RHEL 4, perl -v = "This is perl, v5.8.0 built for i386-linux-thread-multi" The logic of the script : #!/usr/bin/perl use warnings; $param1 = $ARGV; $param2 = $ARGV; $param3 =... (2 Replies)
Discussion started by: sysgate
2 Replies

9. UNIX for Dummies Questions & Answers

how to find which process is stopped

One of my linux machines has a 'stopped' process which i need to find. How do i find the process that is iin 'stopped' mode. I am running red hat linux enterprise. Frank I have now answered this myself with the following command: ps -e j |grep Z (2 Replies)
Discussion started by: frankkahle
2 Replies

10. UNIX for Dummies Questions & Answers

top shows stopped process

When I run the top command, it shows 1 process as being Stopped. This is not a zombie, but simply a stopped process. Unfortunately, I can't figure out how to tell which process this is, nor why it is in a stopped state? Any way of finding this out? (7 Replies)
Discussion started by: IrishRogue
7 Replies
Login or Register to Ask a Question