Application delay or hanging due to log4j
While profiling one of my multi-threaded applications, I found that some of my threads are in blocked state as some other thread is busy using the shared resource. The thread monitor was org.
Solution
The simple solution to this problem is to use AsyncAppender, using AsyncAppender with log4j usually is a good idea but the only problem is that AsynAppender buffer is not flushed completely on application exit.