<div dir="ltr">I would guess you use the consolelogger and after a while the buffer is full ps hangs.Without the information about the appender it's hard to analyse. <div>Perhaps it would be better to call the java-program directly and not start a java-process to start a java-process.</div><div>Niels</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-27 7:02 GMT+02:00 Navin Ipe <span dir="ltr"><<a href="mailto:navin.ipe@searchlighthealth.com" target="_blank">navin.ipe@searchlighthealth.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I'm using...<br><br><i>import org.slf4j.Logger;<br>import org.slf4j.LoggerFactory;<br>static Logger logger = LoggerFactory.getLogger(MyClass.class);<br>Process ps;<br>ps = Runtime.getRuntime().exec("java -jar myclass.jar");<br>ps.waitFor();</i><br><br></div>MyClass is part of a Spring Boot project which uses these dependencies:<br><i>dependencies {<br> compile "ch.qos.logback:logback-classic:1.1.3"<br> compile "ch.qos.logback:logback-core:1.1.3"<br> compile "org.slf4j:slf4j-api:1.7.12"</i><br><br></div><b>Problem is...</b><br></div>myclass.jar runs fine for a while and I can see the outputs of the logger in myclass.log, but after a few hundred lines, there are no more log outputs visible. Moreover, the program itself doesn't seem to function anymore (the program is supposed to be writing to MySQL) but the program does not quit either. It just appears to hang. I left it for 14 hours like that, and nothing proceeded. There's no while loop after ps.waitFor(), and the code is itself not in an infinite loop. As long as the logs are written to the file, the program also writes to MySQL.<br><br></div>On the other hand, if I switch off logging, the program works fine from start to end, writes to MySQL and completes running in 6 hours and exits fine.<br><br></div>I'm considering writing a small sample program to test it out separately, but considered asking here in case this is a known issue.<span class="HOEnZb"><font color="#888888"><br><div><div><div><div><div><div><br clear="all"><div><div><br>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">Regards,<div>Navin</div></div></div>
</div></div></div></div></div></div></div></div></font></span></div>
<br>_______________________________________________<br>
slf4j-user mailing list<br>
<a href="mailto:slf4j-user@qos.ch">slf4j-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/slf4j-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/slf4j-user</a><br></blockquote></div><br></div>