[
https://issues.apache.org/jira/browse/LOG4J2-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327893#comment-15327893
]
Mikael Ståldal commented on LOG4J2-1395:
----------------------------------------
OK, what about this:
Write directly to <code>java.io.FileDescriptor</code> and bypass
<code>java.lang.System.out/.err</code>.
Can give up to 10x performance boost when the output is
redirected to file or other process.
Cannot be used with Jansi on Windows. Cannot be used with
<code>follow</code>. Output will not respect
<code>java.lang.System.setOut()/.setErr()</code> and may get
intertwined with other output to
<code>java.lang.System.out/.err</code> in a multi-threaded
application.
<i>New since 2.6.2. Be aware that this is a new addition, and
it has only been tested with Oracle JVM
on Linux and Windows so far.</i>
> Faster Console appender
> -----------------------
>
> Key: LOG4J2-1395
> URL: https://issues.apache.org/jira/browse/LOG4J2-1395
> Project: Log4j 2
> Issue Type: Improvement
> Components: Appenders
> Affects Versions: 2.5, 2.6, 2.6.1
> Reporter: Mikael Ståldal
> Attachments: ggregory-hardware.txt
>
>
> The ConsoleAppender is much slower than the FileAppender.
> It would be nice to improve the performance of the ConsoleAppender.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]