top shows stopped process


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers top shows stopped process
# 1  
Old 05-20-2003
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?
# 2  
Old 05-20-2003
Please post the output so readers can see what your are referring to.
# 3  
Old 05-20-2003
last pid: 7363; load averages: 6.82, 7.61, 9.56 19:54:04
128 processes: 119 sleeping, 6 running, 1 zombie, 1 stopped, 1 on cpu
CPU states: 38.2% idle, 34.8% user, 20.2% kernel, 6.9% iowait, 0.0% swap
Memory: 1536M real, 259M swap in use, 2430M swap free

PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
19383 root 12 59 0 41M 39M sleep 9:04 4.16% bmserver
19421 root 11 58 0 40M 38M sleep 9:26 3.97% bmserver
19508 qmails 1 58 0 1840K 1448K run 1:40 0.61% qmail-send
19510 mailbox 1 50 0 1880K 1264K run 0:56 0.58% tcpserver
7337 mailbox 4 21 0 3048K 2424K sleep 0:00 0.56% qmail-smtpd
6883 hpzdaleo 1 58 0 2632K 1704K cpu0 0:00 0.38% top-sun4u-5.8
203 root 5 51 0 6944K 6184K sleep 13:22 0.37% automountd
28913 root 1 58 0 1216K 1040K run 22.2H 0.35% cplogd
7358 qmailr 1 39 0 2056K 1472K sleep 0:00 0.23% qmail-remote
176 root 1 58 0 13M 12M sleep 561:19 0.21% named
7355 mailbox 4 52 0 3048K 2408K sleep 0:00 0.21% qmail-smtpd
7080 mailbox 4 31 0 3048K 2408K sleep 0:00 0.20% qmail-smtpd
20462 root 1 58 0 9984K 5104K sleep 298:27 0.18% scopeux
7243 qmailr 1 58 0 2056K 1472K sleep 0:00 0.18% qmail-remote
7146 mailbox 4 33 0 3048K 2408K sleep 0:00 0.17% qmail-smtpd

on this machine:
SunOS 5.8 Generic_108528-08 sun4u sparc SUNW,Ultra-2
# 4  
Old 05-21-2003
Your output does not show the "stopped process".... BTW.
# 5  
Old 05-21-2003
I noticed that only the second line shows that one is stopped. The process does not even list. Hence my question. How do I find out what the process is?
# 6  
Old 05-21-2003
You can use the ps command and search for the stopped process. Check the ps man page for your system to get the correct status flag for a stopped process. For example on our linux system (ps):

Quote:
PROCESS STATE CODES
D uninterruptible sleep (usually IO)
R runnable (on run queue)
S sleeping
T traced or stopped
Z a defunct ("zombie") process

For BSD formats and when the "stat" keyword is used, additional letters may be displayed:

W has no resident pages
< high-priority process
N low-priority task
L has pages locked into memory (for real-time and custom IO)
# 7  
Old 05-21-2003
A process becomes a stopped process because it received a signal that it wasn't catching or ignoring whose default action is to stop the process. This includes signals such as SIGSTOP, SIGTSTP, SIGTTIN, and SIGTTOU.

This is mostly for job control. If your shell has job control features and is configured normally, you can type Control-Z to stop your foreground process.

There is nothing wrong with having a stopped process. You don't want to track it down and send it a SIGCONT unless you stopped it and now want it to continue.
 
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. Shell Programming and Scripting

Infinite while loop script shows more than one process

Hi, I have a script which triggers an infinite loop. #!bin/bash trig=`ls /home/trig.tch |wc -l` function callj { some commands... } while do callj & done The number of process after doing a ps -ef |grep Mon.sh returns processes even after the script is killed by deleting the... (4 Replies)
Discussion started by: chetan.c
4 Replies

3. Linux

Top header says 50% free, but table shows 100% used

Hi, Can anyone explain this? top - 04:21:04 up 23 days, 2:35, 1 user, load average: 0.02, 0.02, 0.00 Tasks: 37 total, 1 running, 36 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 524288k total, 253084k used,... (1 Reply)
Discussion started by: varontron
1 Replies

4. 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

5. 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

6. 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

7. 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

8. UNIX for Advanced & Expert Users

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... (3 Replies)
Discussion started by: prakash.gr
3 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. Shell Programming and Scripting

vmstat returns good val for cpuIdle put ps shows no active process

hi i'm running a shell script that checks the amount of cpu idle either using /usr/bin/vmstat 1 2 or sar 1 2 (on unixware) before i run some tests(if cpu idle greater than 89 I run them). These tests are run on many platforms, linux(suse, redhat) hp-ux, unixware, aix, solaris, tru64. ... (5 Replies)
Discussion started by: OFFSIHR
5 Replies
Login or Register to Ask a Question