I am using Java Mission Control to profile my application for performance issues. JMC has highlighted java.io.PrintStream under Thread Contention and Lock Instances sections.
Why am I facing thread contention issues for JDK package?
It looks like your application is producing a lot of output to stdout or stderr from several threads concurrently (System.out
and System.err
are PrintStream
s). Writes and flushes on a PrintStream
cannot be processed in parallel, they are all synchronized, so you're facing contention.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With