We can improve performance improvement Using an Async Ring Buffer as log4j uses for adding to array stack and for printing logs in error.