Re: Asynchronous Compression and JVM Shutdown

2017-01-23 Thread Robert Schmidtke
It appears version 2.8 is close to being released, will it be possible to get the RollingFileManager threads out of the thread group and join(); them, like I had tried before? 2.7 uses thread groups as well in its factory, yet I don't see the RollingFileManager threads during shutdown. Anyway,

Re: Asynchronous Compression and JVM Shutdown

2017-01-23 Thread Robert Schmidtke
Hi all, thanks for all the replies and details. I looked into the source and it would seem that for a shutdown timeout of 0, the executor service does not wait for all threads to complete, because it's missing the awaitTermination(); call:

Re: Asynchronous Compression and JVM Shutdown

2017-01-23 Thread Mikael Ståldal
The problem with Log4j 2.7 is that it uses a pool of non-daemon threads for the RollingFileManager tasks. This will needlessly block application shutdown when the application exit by returning from the main method (and not use System.exit()). If you use System.exit(), you will not experience this