During the weekend I dug into Java NIO, specifically, mapping files to memory to reduce I/O time. What's more, since I had a lot of free time on my hands, I developed a
Log4j 2 memory-mapped file appender. On my machine, performance tests running on a single thread using the MemoryMappedFile appender show an improvement by a factor of 3 when compared to the
RandomAccessFile appender.
Hi Claude, what changes I have to do to use this appender as other log4j appenders.
ReplyDeleteAjay