Forums Register Login

App stops logging after 10 minutes

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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 ?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Calling the flush method worked. The log completes. Thanks so much for the input. I am sure I will have more questions.
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 840 times.
Similar Threads
Ant SshExec task throwing JschException : Auth fail
JSP page time out
Invoking remove( )
consolidate redeploy and deploy in weblogic.Deployer
App stops logging after 10 minutes
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:16:37.