It may be to do with whether a tty is attached and how fast it is: https://stackoverflow.com/questions/3857052/why-is-printing-to-stdout-so-slow-can-it-be-sped-up
(Shameless plug) Every java main() method deserves http://picocli.info > On Aug 6, 2018, at 4:21, Ralph Goers <ralph.go...@dslextreme.com> wrote: > > Our performance page shows that logging to the console is extremely slow. Yet > one of the “best practices” for containers is to have the applications log to > STDOUT or STDERR. This leads me to two questions: > Is the performance of writing to STDOUT just as bad in a container? I have no > reason to believe it wouldn’t be but have no evidence. > Assuming performance is poor what are the realistic alternatives? Is there > something more Log4j needs to be doing to play well in a cloud environment? > > Ralph