Process stopped: WCHAN pipe_w


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Process stopped: WCHAN pipe_w
# 1  
Old 11-19-2009
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 them is by xml files. Mi program writes a file that will be the input of the other, and the other one writes an output file wich my program reads after wait with "p.waitFor()". Both programs are executed in a remote server through an ssh connection.

My problem is, sometimes, my java program freezes. If I take a look to the running process with "ps -l" the result is similar to this:

Code:
F S   UID   PID  PPID  C PRI  NI ADDR SZ   WCHAN  TTY          TIME    CMD
0 S  712     ****  *******1  2  97  19     -     *****  184466      ?          **********    java
0 S  712     ****  ******  99  99   19       -   *****  pipe_w     ?          **********    ext.prog.

I'm not looking for someone to solve my whole problem, but if you could give me at least some clues about what does pipe_w means and what could cause it I'd be very grateful.

Thanks a lot.

Edit: I forgot to say that it doesn't happen always. For example, sometimes it fail all the executions over an hour, and sometimes it works fine all day. I don't know if it's about my program, something that it's happening in the server...

Edit again: This is the actual situation. The other one was a "reconstruction" xD

Code:
0 S   712 26295     1  0  97  19 - 365416 184466 ?       00:02:47   java
0 S   712 29201 26295  0  99  19 - 60796 pipe_w ?        00:00:00 **********



---------- Post updated 20-11-09 at 02:22 AM ---------- Previous update was 19-11-09 at 11:27 AM ----------

I found the problem, thank you. It was a bug in the external program that produced an unfinished loop. I think you can close this thread.

Sorry for the quotes.

Last edited by pludi; 11-19-2009 at 01:32 PM.. Reason: code tags, please...
# 2  
Old 11-19-2009
It's a wait state on read/write against a pipe.

If you own the processes, run strace. I am guessing you'll see your process waiting on a read from some other process. It is called a deadlock condition.

I've only seen pipe_w in Linux so I'm assuming you are on Linux. Your OS information might help.
# 3  
Old 11-20-2009
Yes, I'm on Linux. Sorry.

Thanks for the info. Like I said, I found the actual problem, but it's good to know.
 
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. 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

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

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

5. UNIX for Dummies Questions & Answers

stopped processes

When I try to exit a session, the message 'there are stopped processes' appears and I can not log out? Solution, please? (2 Replies)
Discussion started by: operag
2 Replies

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

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

8. Shell Programming and Scripting

Stopped (tty output)

What is mean by "Stopped (tty output)", how can i get rid of it. (3 Replies)
Discussion started by: Chandu
3 Replies

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

10. UNIX for Advanced & Expert Users

Server stopped pinging (in and out)

hi All my Redhat Linux server stopped responding to pings all together. and am also not able to ping out of the box. There are however no issues with internet connectivity and my application is working fine. When I tried to ping another machine (Win98) i could see the pings coming from my... (2 Replies)
Discussion started by: skotapal
2 Replies
Login or Register to Ask a Question