| Author |
App stops logging after 10 minutes
|
James Daniel
Ranch Hand
Joined: Sep 24, 2004
Posts: 78
|
|
|
I wrote a java application to kick off a build script and capture the build script output. Without fail, the capture stops after exactly 10 minutes. The build script continues on until completion without fail. Why does my app stop logging after 10 minutes?
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24061
|
|
Where does it log to? What does it log? What are you using for logging? Without telling us more about what you're doing, you're asking for mind-reading.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
If you don't tell us more about how you build your capture functionality, it seems difficult to help. Could it be a buffer getting full ?
|
[My Blog]
All roads lead to JavaRanch
|
 |
James Daniel
Ranch Hand
Joined: Sep 24, 2004
Posts: 78
|
|
|
Sorry, I guess that is why I am still a greenhorn. It is a web based application that stores Ant scripts within a MySQL database writes them to Windows based computers then kicks off the Ant build.xml. I use a buffered reader to read the output from the process and do error checking such as CVS tag does not exist, etc. I then write it out to a log. It essentially passes the Ant script output through Java. It works for 10 minutes then stops. The Ant build completes but the Ant output is incomplete.
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24061
|
|
|
Perhaps it's just that you're not flushing the output. Does the log magically become complete if you call flush() on the Writer or OutputStream you're sending it to?
|
 |
James Daniel
Ranch Hand
Joined: Sep 24, 2004
Posts: 78
|
|
|
Calling the flush method worked. The log completes. Thanks so much for the input. I am sure I will have more questions.
|
 |
 |
|
|
subject: App stops logging after 10 minutes
|
|
|