• Post Reply Bookmark Topic Watch Topic
  • New Topic

JRE causing defunct tail processes?

 
Paul Sorenson
Greenhorn
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 System.in in AIX )
public void run() {
InputStreamReader in = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(in);
try {
while (getContinueRunning()) {
System.out.println("SERVER_CONSOLE_WAITING");
fireOnConsoleEvent(new ConsoleEvent(this, reader.readLine()));
}
......
Script to launch Java program:
(tail -f inFile.in | ./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 System.in. 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
Boost this thread!