aspose file tools*
The moose likes Java in General and the fly likes App stops logging after 10 minutes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "App stops logging after 10 minutes" Watch "App stops logging after 10 minutes" New topic
Author

App stops logging after 10 minutes

James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 80
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: 24187
    
  34

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: 14688
    
  16

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: 80
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: 24187
    
  34

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: 80
Calling the flush method worked. The log completes. Thanks so much for the input. I am sure I will have more questions.
 
wood burning stoves
 
subject: App stops logging after 10 minutes