Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JRE causing defunct tail processes?

Paul Sorenson
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below we have some code that reacts to each new line of text entered into a file ( the "tail" process below sends the file in as the in AIX )
public void run() {
InputStreamReader in = new InputStreamReader(;
BufferedReader reader = new BufferedReader(in);
try {
while (getContinueRunning()) {
fireOnConsoleEvent(new ConsoleEvent(this, reader.readLine()));
Script to launch Java program:
(tail -f | ./jre/bin/java myProgram >> outFile.log &)
We have encountered an error, where for some reason the "tail" child for the java process goes "<defunct>" for an unknown reason. This causes the java program to recieve an infinite amount of "new lines of text" from Question: is it possible the JRE (v1.3.0) could have affected the "tail" process...or is the tail never affected by the java process?
This happens after 4-15 days, and only when run on a single-processor box.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic